You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Get Started with Redwood for Oracle Cloud HCM   Begin Now

Getting 400 Bad Request response while creating Content Item through API

Received Response
61
Views
1
Comments

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({

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!