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

204 Status Code in API worker creation

edited Nov 23, 2023 3:30PM in HCM REST APIs 1 comment

While creating a Contingent worker in the system, API is giving the 204 Status Code.

How to resolve this issue, we require response payload in return.

API - {host}/hcmRestApi/resources/11.13.18.05/workers.

Sample Payload -

{

 "DateOfBirth": "1997-09-12",

 "emails": [

  {

   "EmailType": "P",

   "EmailAddress": "Testingmail1@hotmail.com"

  }

 ],

 "addresses": [

  {

   "AddressLine2": "XX",

   "AddressLine1": "XX",

   "TownOrCity": "XX",

   "PrimaryFlag": true,

   "Country": "XX",

   "PostalCode": "XX",

   "AddressType": "HOME"

  }

 ],

 "names": [

  {

   "LegislationCode": "XX",

   "NameInformation15": "TPC1",

   "FirstName": "Third Paty Contract",

   "NameInformation16": "TPC1",

   "LastName": "12",

   "MiddleNames": ""

  }

 ],

 "phones": [

  {

   "LegislationCode": "XX",

   "PhoneType": "XX",

   "PhoneNumber": "XX"

  }

 ],

 "workRelationships": [

  {

   "LegalEmployerName": "XX",

   "WorkerType": "C",

   "PrimaryFlag": false,

   "assignments": [

    {

     "ManagerFlag": false,

     "LocationCode": "XX",

     "ActionCode": "ADD_CWK",

     "assignmentsDFF": [

      {

       "serviceLine": "XX",

       "deployable": "No",

       "hireType": "Third Party Contractor",

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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