createLibrary

post

createLibrary

Allow the creation of a library. Approach to contributing media is to create a library first and, associate the media with the library. The libraryUuid (a unique identifier for the library) generated in the response of this API would be required in the next step to create a media (e.g. document, image, video). To create successfully, the following input parameters are mandatory: name, description, category, subCategory and tags.

Resource URL

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

Body Parameters

Name Values Description
library
(required)

Example

JSON which holds all the properties of the Library 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

Library

Working...