Lock create
POST {{baseUrl}}/lock/v1/create
This API used to create the Lock resource by a user or system or service. - The lock/v1/create endpoint search the bulk job approve of the content. - All fields marked with an * are mandatory - Required fields cannot be null or empty - Backend Route: http://knowledge-mw-service:5000/v1/lock/create
Request Body
{"request"=>{"resourceId"=>"do_11319479631000371211", "resourceType"=>"Content", "resourceInfo"=>"{\"contentType\":\"TextBook\",\"framework\":\"ekstep_ncert_k-12\",\"identifier\":\"do_11319479631000371211\",\"mimeType\":\"application/vnd.ekstep.content-collection\"}", "creatorInfo"=>"{\"name\":\"N11\",\"id\":\"5a587cc1-e018-4859-a0a8-e842650b9d64\"}", "createdBy"=>"5a587cc1-e018-4859-a0a8-e842650b9d64", "isRootOrgAdmin"=>true}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | (Required) The Content Type entity is the media type of the resource | |
Authorization | string | (Required) To make use of the API, you require authorization. Raise a request to the administrator for the use of the API. You will receive the authorization key. Specify the key received, here. | |
Accept | string | ||
X-device-Id | string |
RESPONSES
status: OK
{"id":"api.lock.create","ver":1,"ts":"2021-01-21T11:14:46.643Z","params":{"resmsgid":"dea6b430-5bd9-11eb-9b0c-abcfbdf41bc3","msgid":"33e7b5d4-7662-bab6-1c06-72e71b8b8221","status":"successful","err":null,"errmsg":null},"responseCode":"OK","result":{"lockKey":"bad55f24-8081-4d03-baab-364296062b47","expiresAt":"2021-01-21T12:14:46.594Z","expiresIn":60}}