Last updated
Last updated
PATCH
/hierarchy/update
• /hierarchy/update/ endpoint executes the "Update Hierarchy QuestionSet" request based on parameters provided as metadata in the request body. •This API is used to add new children and update the existing children or update a hierarchical structure of the question set. • It points to inquiry-api-service (assessment service) - /questionset/v4/hierarchy/update • It is mandatory to provide values for parameters marked with * • Mandatory fields cannot be null or empty.
Complete example
The following request is for updating the existing question set. Here, a new question (MCQ) is added to one of the sections of the question set.
nodesModified
Object
objects details to be created or updated
Yes
hierarchy
Object
objects hierarchy details
Yes
identidier
String
Unique Question identifier
identifiers
String
Object mapping i.e. created or updated
This API is used to update the existing question set on the Sunbird-inQuiry Platform.
Content-Type*
String
The Content Type entity is the media type of the resource.Possible media types can be: Application/json
Authorization*
String
All question APIs require authorization for use. Specify the authorization key received from the administrator when placing the request for use of the API. Set Bearer {{api_key}}
x-channel-id
String
Unique identification number associated with a root organization.
request*
Object
It contains metadata and a hierarchy of the question set to be updated.