OTM REST PATCH – Can POST payload be reused to update Location address
Summary:
We are using the OTM REST API (JSON) to create a Location via a transmission POST locations. After the Location is created, We want to update the address using PATCH on the same Location.
Question:
Can we use the same request body that is used for POST and simply:
- change the transaction to:
- "httpMethod": "PATCH"
- "resourceUrl": "locations/ABC.JSON_5_CUS-1234-5678"
- change only the address fields
…while keeping the rest of the payload unchanged?
In other words, will OTM accept a PATCH payload that still contains all the create-time fields like locationGid, locationXid, domainName, roleProfiles, refnums, etc., as long as we only intend to update the address?
Tagged:
0