For more information, please refer to this announcement explaining best practices for getting answers to questions.
addresses REST API not defaulting City and State based on ZIP Code
Till 24C release we were able to create address for a person using the payload shown below:
URL: /hcmRestApi/resources/11.13.18.05/workers/{workersUniqID}/child/addresses
Method: POST
Request Payload:
{ "AddressType": "MAIL", "AddressLine1": "123 Street", "AddressLine2": "", "TownOrCity": "", "Region1": "", "Region2": "", "Region3": "", "Country": "US", "PostalCode": "61114"}
Now, after the 24D update, we are receiving 400 Bad Request Error:
{ "title": "Bad Request", "status": "400", "o:errorDetails": [ { "detail": "The City attribute value is required. You must enter a value. (PER-1530204)", "o:errorCode": "PER:::PER_EMCOR_NULL_ATTRIBUTE" } ]}
Any help in resolving this issue is highly appreciated.
Thanks,
Sanket