API Functionality | HTTP Error Code | Existing Error Response |
---|
Question Create | 400 Bad Request | Code Block |
---|
{
"id": "api.question. |
| reviewcreate",
"ver": "3.0",
"ts": "2023-05-14T14: |
| 3041ZZ33ZZ",
"params": {
"resmsgid": " |
| 6d9184ee1cb34c99acd8d05fb764aecadb4466c8de3a",
"msgid": null,
"err": " |
| NOTFOUNDERROR",
"status": "failed",
"errmsg": " |
| Error! Node(s) doesn't Exists. | [Invalid Node Id.]: do_abcq_1234"
Validation Errors"
},
"responseCode": " |
| RESOURCENOT_FOUNDERROR",
"result": {
"messages": |
| null [
"Required Metadata name not set"
]
}
} |
| Question | Publish404 Not FoundCreate | 400 Bad Request | Code Block |
---|
{
"id": "api.question. |
| publishcreate",
"ver": "3.0",
"ts": "2023-05-14T14: |
| 3112ZZ17ZZ",
"params": {
"resmsgid": " |
| 486fabc59ca940c48aa948c4c493bc5275ab8b131bb5",
"msgid": null,
"err": " |
| NOTFOUNDERROR",
"status": "failed",
"errmsg": " |
| Error! Node(s) doesn't Exists. | [Invalid Node Id.]: do_abcq_1234Validation Errors"
},
"responseCode": " |
| RESOURCENOT_FOUNDERROR",
"result": {
"messages": [
|
| null}
}Question Reject | 404 Not Found "Required Metadata code not set"
]
}
} |
| Question Create | 400 Bad Request | Code Block |
---|
{
"id": "api.question. |
| rejectcreate",
"ver": "3.0",
"ts": "2023-05-14T14: |
| 3224ZZ27ZZ",
"params": {
"resmsgid": " |
| 49b848a417d143dd9fe8508f224dd6f5bb927025d3e0",
"msgid": null,
"err": " |
| NOTFOUNDERROR",
"status": "failed",
"errmsg": " |
| Error! Node(s) doesn't Exists. | [Invalid Node Id.]: do_abc_reject_1111Validation Errors"
},
"responseCode": " |
| RESOURCENOT_FOUNDERROR",
"result": {
"messages": [
|
| null}}QuestionSet Create | 404 Not Found | Code Block | {id": "api.questionset.create",Required Metadata mimeType not set"
|
| " | Question Create | 400 Bad Request | Code Block |
---|
{
"id": "api.question.create",
"ver": "3.0",
"ts": "2023-05-14T14: |
| 3304ZZ49ZZ",
"params": {
"resmsgid": " |
| 6b5f76da2fbd433b96601d7913be0db66d32e8e4cbcf",
"msgid": null,
"err": " |
| 404CLIENT_ERROR",
"status": "failed",
"errmsg": " |
| Entry is not found in cassandra for content with identifier: obj-cat:test-questionset-category_questionset_all {}Validation Errors"
},
"responseCode": " |
| RESOURCENOT_FOUNDERROR",
"result": {
"messages": |
| null}}QuestionSet Read | 404 Not Found | Code Block | {"id":api.questionset.read",
"Required Metadata primaryCategory not set"
]
}
} |
| Question Create | 400 Bad Request | Code Block |
---|
{
"id": "api.question.create",
"ver": "3.0",
"ts": "2023-05-14T14: |
| 3310ZZ35ZZ",
"params": {
"resmsgid": " |
| 9322f6f9da7b481f9a67281403c321f50292b734dfdc",
"msgid": null,
"err": " |
| NOTFOUNDERROR",
"status": "failed",
"errmsg": " |
| Error! Node(s) doesn't Exists. | [Invalid Node Id.]: questionset_123_invalidValidation Errors"
},
"responseCode": " |
| RESOURCENOT_FOUNDERROR",
"result": {
"messages": [
|
| null}}QuestionSet Update | 404 Not Found | Code Block | {id": "api.questionsetMetadata mimeType should be one of: [application/vnd.sunbird.question]"
]
}
} |
| Question Update | 400 Bad Request | Code Block |
---|
{
"id": "api.question.update",
"ver": "3.0",
"ts": "2023-05-14T14: |
| 3327ZZ03ZZ",
"params": {
"resmsgid": " |
| 0f41b47c7f8d46dc87dd171ef4d8bfb69add9a04da52",
"msgid": null,
"err": " |
| NOTFOUNDERROR",
"status": "failed",
"errmsg": " |
| Error! Node(s) doesn't Exists. | [Node Id.]: invalid_questionset_idversion Key"
},
"responseCode": " |
| RESOURCENOT_FOUNDERROR",
"result": {
"messages": null
}
} |
|
QuestionSet Update Hierarchy | 404 Not FoundQuestion Review | 400 Bad Request | | questionsethierarchy.updatereview",
"ver": "3.0",
"ts": "2023-05-14T14: |
| 3349ZZ20ZZ",
"params": {
"resmsgid": " |
| d63ee9b11a49455aa9a0accd6bc5a036db41b5f60716",
"msgid": null,
"err": " |
| NOT_FOUNDERR_MANDATORY_FIELD_VALIDATION",
"status": "failed",
"errmsg": " |
| Error! Node(s) doesn't Exists. | [Invalid Node Id.]: do_qs_12345Mandatory Fields [body] Missing for do_21379593928588492814142"
},
"responseCode": " |
| RESOURCENOT_FOUNDERROR",
"result": {
"messages": null
}
} |
|
QuestionSet Update Hierarchy | 404 Not FoundQuestion Review | 400 Bad Request | | questionsethierarchy.updatereview",
"ver": "3.0",
"ts": "2023-05-14T14: |
| 3354ZZ24ZZ",
"params": {
"resmsgid": " |
| c9fdb65fa07141b9a0eb0f7a160329ee67c234154bc8",
"msgid": null,
"err": " |
| NOT_FOUNDERR_MANDATORY_FIELD_VALIDATION",
"status": "failed",
"errmsg": " |
| Error! Node(s) doesn't Exists. | [Invalid Node Id.]: do_q_123456Mandatory Fields [responseDeclaration] Missing for do_21379593932446105614143"
},
"responseCode": " |
| RESOURCENOT_FOUNDERROR",
"result": {
"messages": null
}
} |
| QuestionSet 404 Not Foundquestionsetquestion.review",
"ver": "3.0",
"ts": "2023-05-14T14: |
| 3425ZZ29ZZ",
"params": {
"resmsgid": " |
| 8050b4056c9f431aa5ed2465bd92aa3d94d42f82546d",
"msgid": null,
"err": " |
| NOT_FOUNDERR_MANDATORY_FIELD_VALIDATION",
"status": "failed",
"errmsg": " |
| Error! Node(s) doesn't Exists. | [Invalid Node Id.]: do_qs_12345Mandatory Fields [interactions] Missing for do_21379593936168550414144"
},
"responseCode": " |
| RESOURCENOT_FOUNDERROR",
"result": {
"messages": null
}
} |
|
QuestionSet Publish | 404 Not FoundQuestion Review | 400 Bad Request | | questionsetpublishreview",
"ver": "3.0",
"ts": "2023-05-14T14: |
| 3439ZZ34ZZ",
"params": {
"resmsgid": " |
| c08b8af95b0347b0b2be1a37e840fae005e59cf2dc43",
"msgid": null,
"err": " |
| NOT_FOUNDERR_MANDATORY_FIELD_VALIDATION",
"status": "failed",
"errmsg": " |
| Error! Node(s) doesn't Exists. | [Invalid Node Id.]: do_1234_publishMandatory Fields [answer] Missing for do_21379593940282572814145"
},
"responseCode": " |
| RESOURCENOT_FOUNDERROR",
"result": {
"messages": null
}
} |
|
QuestionSet Read Hierarchy | 404 Not FoundQuestion Publish | 400 Bad Request | | questionsethierarchy.getpublish",
"ver": "3.0",
"ts": "2023-05-14T14: |
| 3447ZZ56ZZ",
"params": {
"resmsgid": " |
| d229d131d787480abbfa2800d59dcb5a87d66f60b323",
"msgid": null,
"err": " |
| RESOURCENOTFOUNDVALIDATION",
"status": "failed",
"errmsg": " |
| rootId do_21379594147649945614172 does not existMandatory Fields [body] Missing for do_21379593958717030414146"
},
"responseCode": " |
| RESOURCENOT_FOUNDERROR",
"result": {
"messages": null
}
} |
|
QuestionSet Read Hierarchy | 404 Not FoundQuestion Publish | 400 Bad Request | | questionsethierarchy.getpublish",
"ver": "3.0",
"ts": "2023-05-14T14: |
| 3451ZZ00ZZ",
"params": {
"resmsgid": " |
| 3dceeaa513ad400a9470869017e71239f9790dffd713",
"msgid": null,
"err": " |
| RESOURCENOTFOUNDVALIDATION",
"status": "failed",
"errmsg": " |
| rootId do_qs_123_abc does not existMandatory Fields [responseDeclaration] Missing for do_21379593961955328014147"
},
"responseCode": " |
| RESOURCENOT_FOUNDERROR",
"result": {
"messages": null
}
} |
|
QuestionSet Retire | 404 Not FoundQuestion Publish | 400 Bad Request | | questionsetretirepublish",
"ver": "3.0",
"ts": "2023-05-14T14: |
| 3517ZZ04ZZ",
"params": {
"resmsgid": " |
| 995b39d187fc439e992a397175f77fb9886bd38851d8",
"msgid": null,
"err": " |
| NOT_FOUNDERR_MANDATORY_FIELD_VALIDATION",
"status": "failed",
"errmsg": " |
| Error! Node(s) doesn't Exists. | [Invalid Node Id.]: do_qs_1234Mandatory Fields [interactions] Missing for do_21379593964663603214148"
},
"responseCode": " |
| RESOURCENOT_FOUNDERROR",
"result": {
"messages": null
}
} |
|
QuestionSet Reject | 404 Not FoundQuestion Publish | 400 Bad Request | | questionsetrejectpublish",
"ver": "3.0",
"ts": "2023-05-14T14: |
| 3923ZZ07ZZ",
"params": {
"resmsgid": " |
| acd9ed0b3aec481cac523476b805f0990dcc81780708",
"msgid": null,
"err": " |
| NOT_FOUNDERR_MANDATORY_FIELD_VALIDATION",
"status": "failed",
"errmsg": " |
| Error! Node(s) doesn't Exists. | [Invalid Node Id.]: do_qs_123445Mandatory Fields [answer] Missing for do_21379593967552921614149"
},
"responseCode": " |
| RESOURCENOT_FOUNDERROR",
"result": {
"messages": null
}
} |
|
QuestionSet Add Children | 404 Not FoundQuestion List | 400 Bad Request | | questionsetaddlist",
"ver": "3.0",
"ts": "2023-05-14T14: |
| 3953ZZ29ZZ",
"params": {
"resmsgid": " |
| 673887df8c4d4b8490d5874f3868d5ce113609f12b6f",
"msgid": null,
"err": " |
| NOTFOUNDREQUEST",
"status": "failed",
"errmsg": " |
| Error! Node(s) doesn't Exists. | [Invalid Node Id.]: do_qs_12333333Request contains invalid identifiers : [do_list_abc_123]."
},
"responseCode": " |
| RESOURCENOT_FOUNDERROR",
"result": {
"messages": null
}
} |
|
QuestionSet Remove Children | 404 Not FoundQuestion List | 400 Bad Request | | questionsetremovelist",
"ver": "3.0",
"ts": "2023-05-14T14: |
| 4007ZZ34ZZ",
"params": {
"resmsgid": " |
| 015b90c2bb4c4a24a270dba2acf21538902efcc786ee",
"msgid": null,
"err": " |
| NOTFOUNDBAD_REQUEST",
"status": "failed",
"errmsg": " |
| Error! Node(s) doesn't Exists. | [Invalid Node Id.]: do_qs_1111223333Request contains invalid identifiers : [do_list_abc_234, do_list_abc_123]."
},
"responseCode": " |
| RESOURCENOT_FOUNDERROR",
"result": {
"messages": null
}
} |
| Question Import | 400 Bad Request | Code Block |
---|
{
"id": "api.question.import",
"ver": "3.0",
"ts": "2023-05-14T14:32:00ZZ",
"params": {
"resmsgid": "b71e805f-5341-4e56-93ed-9f57fd293864",
"msgid": null,
"err": "ERR_REQUIRED_PROPS_VALIDATION",
"status": "failed",
"errmsg": "Validation Failed! Mandatory Properties Are [\"name\",\"code\",\"mimeType\",\"framework\",\"channel\"] | Required Property's Missing For [fb1aef22-88e4-4f91-8055-6086bf338bf1]"
},
"responseCode": "CLIENT_ERROR",
"result": {
"messages": null
}
} |
| Question Import | 400 Bad Request | Code Block |
---|
{
"id": "api.question.import",
"ver": "3.0",
"ts": "2023-05-14T14:32:09ZZ",
"params": {
"resmsgid": "6a19eeec-b742-4057-a782-c5c1a6a73695",
"msgid": null,
"err": "ERR_READ_SOURCE",
"status": "failed",
"errmsg": "Received Invalid Response While Reading Data From Source. Response Code is : RESOURCE_NOT_FOUND"
},
"responseCode": "CLIENT_ERROR",
"result": {
"messages": null
}
} |
| Question Reject | 400 Bad Request | Code Block |
---|
{
"id": "api.question.reject",
"ver": "3.0",
"ts": "2023-05-14T14:32:19ZZ",
"params": {
"resmsgid": "1acd73e6-d400-492e-abf5-5654c3425934",
"msgid": null,
"err": "ERR_QUESTION_REJECT",
"status": "failed",
"errmsg": "Question is not in 'Review' state for identifier: do_21379594026542694414151"
},
"responseCode": "CLIENT_ERROR",
"result": {
"messages": null
}
} |
| QuestionSet Create | 400 Bad Request | Code Block |
---|
{
"id": "api.questionset.create",
"ver": "3.0",
"ts": "2023-05-14T14:32:44ZZ",
"params": {
"resmsgid": "9ce43dcc-49c6-4b19-9285-1e4019bfbf30",
"msgid": null,
"err": "CLIENT_ERROR",
"status": "failed",
"errmsg": "Validation Errors"
},
"responseCode": "CLIENT_ERROR",
"result": {
"messages": [
"Required Metadata name not set"
]
}
} |
| QuestionSet Create | 400 Bad Request | Code Block |
---|
{
"id": "api.questionset.create",
"ver": "3.0",
"ts": "2023-05-14T14:32:53ZZ",
"params": {
"resmsgid": "6ac7f1cc-a41a-4bf4-a5f7-49f16beece82",
"msgid": null,
"err": "CLIENT_ERROR",
"status": "failed",
"errmsg": "Validation Errors"
},
"responseCode": "CLIENT_ERROR",
"result": {
"messages": [
"Required Metadata code not set"
]
}
} |
| QuestionSet Create | 400 Bad Request | Code Block |
---|
{
"id": "api.questionset.create",
"ver": "3.0",
"ts": "2023-05-14T14:32:56ZZ",
"params": {
"resmsgid": "6a4dc627-3593-49d5-adcf-d0c0a077cff6",
"msgid": null,
"err": "CLIENT_ERROR",
"status": "failed",
"errmsg": "Validation Errors"
},
"responseCode": "CLIENT_ERROR",
"result": {
"messages": [
"Required Metadata mimeType not set"
]
}
} |
| QuestionSet Update | 200 OK | ?? | QuestionSet Update Hierarchy | 400 Bad Request | Code Block |
---|
{
"id": "api.questionset.hierarchy.update",
"ver": "3.0",
"ts": "2023-05-14T14:33:44ZZ",
"params": {
"resmsgid": "948bf8e0-c33c-40ed-8e69-fdecace00b7d",
"msgid": null,
"err": "ERR_INVALID_ROOT_ID",
"status": "failed",
"errmsg": "Please Provide Valid Root Node Identifier"
},
"responseCode": "CLIENT_ERROR",
"result": {
"messages": null
}
} |
| QuestionSet Review | 400 Bad Request | Code Block |
---|
{
"id": "api.questionset.review",
"ver": "3.0",
"ts": "2023-05-14T14:34:05ZZ",
"params": {
"resmsgid": "f90d747b-be39-4fad-992c-c5e2c8575806",
"msgid": null,
"err": "ERR_MANDATORY_FIELD_VALIDATION",
"status": "failed",
"errmsg": "Mandatory Fields [responseDeclaration] Missing for do_21379594112953548814163"
},
"responseCode": "CLIENT_ERROR",
"result": {
"messages": null
}
} |
| QuestionSet Publish | 400 Bad Request | Code Block |
---|
{
"id": "api.questionset.publish",
"ver": "3.0",
"ts": "2023-05-14T14:34:33ZZ",
"params": {
"resmsgid": "25552ef2-1af5-4bbb-80cb-d68b8f229b1f",
"msgid": null,
"err": "ERR_MANDATORY_FIELD_VALIDATION",
"status": "failed",
"errmsg": "Mandatory Fields [responseDeclaration] Missing for do_21379594136426086414168"
},
"responseCode": "CLIENT_ERROR",
"result": {
"messages": null
}
} |
| QuestionSet Retire | 400 Bad Request | Code Block |
---|
{
"id": "api.questionset.retire",
"ver": "3.0",
"ts": "2023-05-14T14:35:05ZZ",
"params": {
"resmsgid": "b2e2a370-dee4-47cb-8fe6-a250cdc70f7c",
"msgid": null,
"err": "ERR_QUESTION_SET_RETIRE",
"status": "failed",
"errmsg": "QuestionSet with identifier : do_21379594162091622414177 is already Retired."
},
"responseCode": "CLIENT_ERROR",
"result": {
"messages": null
}
} |
| QuestionSet Reject | 400 Bad Request | Code Block |
---|
{
"id": "api.questionset.reject",
"ver": "3.0",
"ts": "2023-05-14T14:38:57ZZ",
"params": {
"resmsgid": "ff2aac33-c257-487a-85a8-b44a013e2f71",
"msgid": null,
"err": "ERR_QUESTION_SET_REJECT",
"status": "failed",
"errmsg": "QuestionSet is not in 'Review' state for identifier: do_21379594343893401614182"
},
"responseCode": "CLIENT_ERROR",
"result": {
"messages": null
}
} |
| QuestionSet Import | 400 Bad Request | Code Block |
---|
{
"id": "api.questionset.import",
"ver": "3.0",
"ts": "2023-05-14T14:39:31ZZ",
"params": {
"resmsgid": "b8a1999b-5893-4ef5-801d-b7c73813119f",
"msgid": null,
"err": "ERR_REQUIRED_PROPS_VALIDATION",
"status": "failed",
"errmsg": "Validation Failed! Mandatory Properties Are [\"name\",\"code\",\"mimeType\",\"framework\",\"channel\"] | Required Property's Missing For [4f85db76-f8c4-41d0-b45c-a8cadba2f618]"
},
"responseCode": "CLIENT_ERROR",
"result": {
"messages": null
}
} |
| QuestionSet Import | 400 Bad Request | Code Block |
---|
{
"id": "api.questionset.import",
"ver": "3.0",
"ts": "2023-05-14T14:39:36ZZ",
"params": {
"resmsgid": "45cd3ffc-205e-44cd-8017-40804711aa2a",
"msgid": null,
"err": "ERR_READ_SOURCE",
"status": "failed",
"errmsg": "Received Invalid Response While Reading Data From Source. Response Code is : RESOURCE_NOT_FOUND"
},
"responseCode": "CLIENT_ERROR",
"result": {
"messages": null
}
} |
| QuestionSet Add Children | 400 Bad Request | Code Block |
---|
{
"id": "api.questionset.add",
"ver": "3.0",
"ts": "2023-05-14T14:39:44ZZ",
"params": {
"resmsgid": "6f0aa0d2-6d4a-4788-8a22-0c68d8bb841a",
"msgid": null,
"err": "ERR_BAD_REQUEST",
"status": "failed",
"errmsg": "children are mandatory"
},
"responseCode": "CLIENT_ERROR",
"result": {
"messages": null
}
} |
| QuestionSet Remove Children | 400 Bad Request | Code Block |
---|
{
"id": "api.questionset.remove",
"ver": "3.0",
"ts": "2023-05-14T14:40:01ZZ",
"params": {
"resmsgid": "242d2006-4e0e-49d8-8edd-725e68fd6a16",
"msgid": null,
"err": "ERR_BAD_REQUEST",
"status": "failed",
"errmsg": "children are mandatory"
},
"responseCode": "CLIENT_ERROR",
"result": {
"messages": null
}
} |
|
|