What's new in Customer Journeys?

Connect and learn more! ×
204 Status Code in API worker creation — Cloud Customer Connect
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

204 Status Code in API worker creation

Received Response
59
Views
1
Comments
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": "[email protected]"

  }

 ],

 "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!