Adding new property "learningOutcomeIds' to questionSet Schema #91
Closed
vaivk369
started this conversation in
General Discussions
Replies: 1 comment 3 replies
-
@krgauraw did you get a chance to look into this?. It would be great if you could spare some time and help. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @krgauraw
We are trying to add new property
learningOutcomeIds
to questionset.Steps I followed:
learningOutcomeIds
in the schema fileBut still I am getting
Invalid Props are : [learningOutcomeIds]
error while creating questionset with API CURL as:curl 'https://dock.sunbirded.org/action/questionset/v1/create' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Cookie: connect.sid=s%3ATroiMcXla6MI4BNy6O51LXuLUh2ZcxIT.0vuG36szLApXkUJ01q%2FPoYMlwuPtFNfseWLiqBRqWS8' \ --data-raw '{"request":{"questionset":{"name":"Untitled","code":"a563f3fb-35e8-4ddf-a9f4-cce7ed01ecbd","mimeType":"application/vnd.sunbird.questionset","createdBy":"366a95a0-35d5-4408-8c37-8d60f8fab0da","primaryCategory":"Practice Question Set","creator":"cokreat","author":"cokreat","programId":"7f8187c0-0c01-11ee-9d2c-c1818048f076","channel":"01379157488516300825","framework":"vdn_k-12","board":"Pune","medium":[],"gradeLevel":[],"subject":[],"boardIds":[],"mediumIds":[],"gradeLevelIds":[],"subjectIds":[],"topic":[],"learningOutcome":[],"learningOutcomeIds":[]}}}' \ --compressed
Response:
{
"id": "api.questionset.create",
"ver": "3.0",
"ts": "2023-06-28T07:05:59ZZ",
"params": {
"resmsgid": "840d4de3-9916-48c6-82cf-18604c38f5e0",
"msgid": null,
"err": "CLIENT_ERROR",
"status": "failed",
"errmsg": "Invalid request"
},
"responseCode": "CLIENT_ERROR",
"result": {
"messages": [
"Invalid Props are : [learningOutcomeIds]"
]
}
}
cc: @vinukumar-vs
Beta Was this translation helpful? Give feedback.
All reactions