204 Status Code in API worker creation
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",