Publish A Schema
Request
Publish a Schema
PUT /api/v1/Schema/{id}
Path Parameters
Name
Type
Description
id*
String
id of the schema that is to be published
Headers
Name
Type
Description
content-type*
String
Set to application/json
authorization
String
Set to Bearer {access-token} . The token should be a admin token
Request Body
Name
Type
Description
status*
PUBLISHED
{
"id": "sunbird-rc.registry.update",
"ver": "1.0",
"ets": 1669117705369,
"params": {
"resmsgid": "",
"msgid": "2ff44354-bb9a-4dce-93ba-053f97587df6",
"err": "",
"status": "SUCCESSFUL",
"errmsg": ""
},
"responseCode": "OK"
}Sample Schema Request Payload
Usage
cURL
HTTPie
{registry-url} is usually http://localhost:{port}. The port can be found under the registry section in the docker-compose.yml file and is usually 8081
Last updated
Was this helpful?