Update Libraries

put

Update Libraries

Allow an existing Library to be updated through the use of a unique identifier. The acronym for unique identifier is uuid. This uuid is created when you submit a media content. This can be found in API JSON response. If you have not documented the uuid, you can fetch it by using Search Libraries By Keyword or UUIDs API.

Resource URL

https://api.stb.gov.sg/media-management /libraries/v2/{uuid}

Header Parameters

Name Values Description
Content-Type
(required)

Format of the request body sent. Accepts only application/json.

Example

JSON which holds all the properties of the Library to be updated

uuid UUID of the existing Library. null true

Request Attributes

Parameter Name Type Max Length Description Example
namestring255Name of library.
Mandatory
Food Adventure
tagsarrayTags pertaining to the record. Refer to Tags.
Mandatory
Validation: acceptable tag value(s)
categorystring255Library category. Refer to Dataset.
Mandatory
Validation: valid category
food_beverages
subCategorystring255Library subcategory. Refer to the respective media sub-categories of each media category.
Mandatory
Validation: valid sub-category correspond to media category
cafe
descriptionstring255An overview to help visitors understand the key features of media library.Night Walking/Food Trail in CBD

Response Error Details

HTTP Code Description
400 Bad Request — Request was not accepted and could be due to malformed parameter (e.g. spelling error) or missing a required parameter.
401 Unauthorised — API key is invalid or was not provided.
403 Forbidden — API key does not have the permission to perform the request.
404 Resource Not Found — Requested resource (i.e. the resource URL) does not exist.
405 Method Not Allowed — The HTTP request method is not supported by the resource.
406 Not Acceptable — Requester's acceptable content type for the response does not match the content type returned by the resource.
414 Request URL Too Long — Request URL exceeded the maximum acceptable URL length.
415 Unsupported Media Type — Request's format is not supported by the resource.
422 Unprocessable Entity — Request was not accepted, often due to semantic errors, such as data format.
500 Server Errors — Something is not working on TIH's end, happened very rarely.

Resource Summary

Security Content Type Category

OAuth 2.0

application/json

Libraries

Working...