Collection Update
PATCH {{baseUrl}}/collection/v1/update/{{collectionId}}
This API is associated with update Collection on the Sunbird Platform .
- /Collection/ endpoint executes the Update Collection
request based on parameters provided as metadata in the request body.
- The endpoint for Update Collection is /collection/v1/update
- It points to knowledge-mw-service - /v1/collection/update
- {...}refers to a section of review endpoint URL path that needs to be replaced by appropriate Id.
- It is mandatory to provide values for parameters marked with *.
- Mandatory fields cannot be null or empty.
Request Body
{"request"=>{"collection"=>{"versionKey"=>"1694503154960", "lastUpdatedBy"=>"874ed8a5-782e-4f6c-8f36-e0288455901e", "description"=>"dsd", "name"=>"API DOCUMENTATION CONTENT", "mimeType"=>"application/vnd.ekstep.content-collection", "channel"=>"in.ekstep"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | (Required) The Content Type entity is the media type of the resource.Possible media types can be:- |
- Application/json |
|
X-Authenticated-User-Token
| string | | (Required) The Registered User ID used to execute the API. | |X-Channel-id
| string | | The unique ID provided to the State to which the user belongs. | |Authorization
| string | | (Required) All content APIs require authorization for use. Specify the authorization key received from the administrator when placing the request for use of the API. | |Accept
| string | | |
RESPONSES
status: OK
{"id":"api.collection.update","ver":"4.0","ts":"2022-01-06T07:01:16ZZ","params":{"resmsgid":"5d0b07e7-be99-41a1-a702-ef10bdf93c61","status":"successful"},"responseCode":"OK","result":{"identifier":"do_11334223976733900811","node_id":"do_11334223976733900811","versionKey":"1641452476524"}}