API example for Date Type Custom Property Assigning
Summary
API example for Date Type Custom Property AssigningContent
Created a new metadata field of Date type named as ”Create_date” and set the value of mm/dd/yyyy when trying to assign it.
Used Postman to validate the API endpoint with sample JSON as shown in below.
POST: https://documents-gse*.documents.us2.oraclecloud.com/documents/api/1.1/files/DF2689*
JSON Body: { "test_1.create_date":"12/12/2018" }
Although the JSON contains date in mm/dd/yyyy i.e. 12/12/2018 format still the error received was- “Invalid date format”. Not sure why this fails.
Looked up the API document for ODCS but there was no example available for uploading metadata field as date type.
Tagged:
1