Unable to create Question and associated answers via REST API
Summary:
Unable to create Question and associated answer via REST API
Content (please ensure you mask any confidential information):
Following is my POST request but getting 400 Bad request. What am I missing?
https://fa-ekha-dev9-saasfaprod1.fa.ocs.oraclecloud.com/hcmRestApi/resources/11.13.18.05/questions
{
"QuestionText": "Are you authorized to work in US?",
"QuestionType": "1CHOICE",
"ResponseType": "SINGLE_CHOICE_LIST",
"SubscriberName": "Recruiting",
"FolderId": 300000745886384,
"Status": "A",
"ClassificationCode": "MANUAL_PRESCREEN",
"CandidateCode": "BOTH",
"PrivacyFlag": true,
"Answers": [
{
"ShortAnswerText": "Yes",
"Score": 10,
"SequenceNumber": 1,
"CorrectFlag":true
},
{
"ShortAnswerText": "No",
"Score": 0,
"SequenceNumber": 2
},
{
"ShortAnswerText": "Prefer not to say",
"Score": 5,
"SequenceNumber": 3
}
]
}
Version (include the version you are using, if applicable):
25C
Code Snippet (add any code snippets that support your topic, if applicable):
0