To ensure that questions get required attention from community members and are NOT left unanswered, it’s important for the author to indicate (by selecting “Yes” or “No” when prompted) whether the question was answered.
For more information, please refer to this announcement explaining best practices for getting answers to questions.
Address REST API to create Multiple address types for a person
Summary:
Hi All,
Can we use Address API to create multiple address types for a person record? We are able to create them seperately by calling the API once for each type. If we were to club everything in one payload. it is throwing error. We would like to call the address API once and create all the different types of address in one shot. Is this allowed from API?
End Point Used:
POST:
https://<POD URL>/hcmRestApi/resources/11.13.18.05/workers/<Worker Unique ID>/child/addresses
Header:
REST-Framework-Version:4
Payload
[{
"AddressType": "MAIL",
"AddressLine1": "123 Addres1 Line3 Drive",
"TownOrCity": "Highlands Ranch",
"Region1": "Douglas",
"Region2": "CO",