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

Learning content load REST call using cURL

Received Response
1
Views
2
Comments

Hi

We are trying to load some pdf content using below curl command , and I am executing this in window command prompt , but we are getting error HTTP/1.1 415 Unsupported Media Type. Not sure what is the issue any help please ?

curl -vs -u user_name:password -H 'Content-Type:application/vnd.oracle.adf.resourceitem+json' -d "@PDFpayload.txt"  https://<POD>/hcmRestApi/resources/latest/learningContentItems


PDFpayload.txt

--------

{

 "Title":"RE201919710091949",

 "FileName" : "Test.pdf",

 "Description" : "201919710091949 TLearn Desc",

 "ItemNumber" : "REST-20171009194",

 "TrackingType" : "ORA_PDF",

 "Status" : "ORA_CONT_ACTIVE",

 "StartDate" : "2017-06-15",

 "EndDate" : "2023-06-14"

}


Thanks

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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