200: OK The Update Question Set operation was successfuly executed. 400: Bad Request The 'Update QuestionSet' operation failed ! The possible reason for failure is that you may have missed providing input for a mandatory parameter. 404: Not Found The Update Question Set operation failed !The possible reason for failure is that you may have provided wrong question ID. 500: Internal Server Error Looks like something went wrong! These errors are tracked automatically
Copy {
"id" : "api.questionset.update" ,
"ver" : "5.0" ,
"ts" : "2023-06-29T07:51:03ZZ" ,
"params" : {
"resmsgid" : "9d9d4824-cc40-4ac7-a3d6-6da61c0240e9" ,
"msgid" : null ,
"err" : null ,
"status" : "successful" ,
"errmsg" : null
} ,
"responseCode" : "OK" ,
"result" : {
"identifier" : "do_113207924037746688110" ,
"versionKey" : "1612295707004"
}
}
Copy {
"id" : "api.questionset.update" ,
"ver" : "5.0" ,
"ts" : "2023-06-29T07:51:03ZZ" ,
"params" : {
"resmsgid" : "fcfcf6d6-84f1-43f5-b573-c3b6cf69ef53" ,
"msgid" : null ,
"err" : "CLIENT_ERROR" ,
"status" : "failed" ,
"errmsg" : "Invalid version Key"
} ,
"responseCode" : "CLIENT_ERROR" ,
"result" : {
"messages" : null
}
}
Copy {
"id" : "api.questionset.update" ,
"ver" : "5.0" ,
"ts" : "2023-06-29T07:51:03ZZ" ,
"params" : {
"resmsgid" : "2b139ee9-f091-4cca-b466-32af45f49a65" ,
"msgid" : null ,
"err" : "NOT_FOUND" ,
"status" : "failed" ,
"errmsg" : "Error! Node(s) does not exist. | [Invalid Node Id.]: do_1132079240377466881101"
} ,
"responseCode" : "RESOURCE_NOT_FOUND" ,
"result" : {
"messages" : null
}
}
Copy {
"id" : "api.questionset.update" ,
"ver" : "5.0" ,
"ts" : "2023-06-29T07:51:03ZZ" ,
"params" : {
"resmsgid" : "f234a6f0-3ac4-11eb-b0a2-8d5c9f561887" ,
"msgid" : null ,
"status" : "failed" ,
"err" : null ,
"errmsg" : null
} ,
"responseCode" : "SERVER_ERROR" ,
"result" : {}
}
Copy {
"request" : {
"questionset" : {
"description" : "Updated description" ,
"versionKey" : "1612295414767"
}
}
}
Copy curl --location -g --request PATCH '{{host}}/questionset/v2/update/{{questionSet_id}}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{api_key}}' \
--data-raw '{
"request": {
"questionset":{
"versionKey": {{versionKey}},
"description": "Updated description"
}
}
}'