Getting 400 Bad Request response while creating Content Item through API
Summary:
Content (required):
I had followed the steps mentioned in the documentation but still gettting 400 bad request as response.
This is the endpoint which I used to create content item. /hcmRestApi/resources/11.13.18.05/learningContentItems
Documentation link :
https://docs.oracle.com/en/cloud/saas/human-resources/23b/farws/op-learningcontentitems-post.html
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):
Below one is the curl req which I used.
var settings = {
"url": "{{serviceurl}}/hcmRestApi/resources/11.13.18.05/learningContentItems",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/vnd.oracle.adf.batch+json",
"Authorization": "Basic *****************************"
},
"data": JSON.stringify({