createDocument

post

createDocument

Allow the creation of a Document metadata. To create successfully, the following input parameters are mandatory: name, category, subCategory, libraryUuid and tags.

Approach is to create a Library and retrieve the libraryUuid, prior to creating a Document metadata. Once the Document metadata has been created, proceed to upload the document asset using uploadMedia API.

Resource URL

https://tih-api.stb.gov.sg/media /v1/admin/document

Body Parameters

Name Values Description
document
(required)

Example

JSON which holds all the properties of the Document to be created

Request Attributes

Parameter Name Type Max Length Description Example

Response Error Details

HTTP Code Error Code Description
400 400 Bad Request
401 401 Unauthorized
404 404 Not found
409 409 Conflict
410 410 XSS Threat Detected

Resource Summary

Security Content Type Category

application/json

Document

Working...