Update Term
PATCH {{baseUrl}}/framework/v1/term/update/{{code}}?framework={{frameworkId}}&category={{categoryId}}
This API is associated with updating a term under a category in a framework on Sunbird Platform
- The endpoint for Update Term is /framework/v1/term/update{code}
- It points to knowledge-mw-service - /v1/framework/term/update/{code}
- The fields marked with an asterisk (*) are mandatory. They cannot be null or empty.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
framework | string | (Required) Represents the framework in which the terms is to be updated | |
category | string | (Required) Represents the category in which the term is to be updated |
Request Body
{"request"=>{"term"=>{"name"=>"English", "description"=>"English"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"id":"api.term.update","ver":"1.0","ts":"2020-12-14T19:48:19.754Z","params":{"resmsgid":"50ffd0a0-3e45-11eb-9ff3-67c41480f6aa","msgid":"50f04040-3e45-11eb-9ff3-67c41480f6aa","status":"successful","err":null,"errmsg":null},"responseCode":"OK","result":{"node_id":"dummy_framework_subject_english","versionKey":"1607975299669"}}