Request
Before proceeding, ensure that you have the ID of the store location for which custom data is to be modified.
Perform a PUT
request to:
https://dmo.metapack.com/locations/<Location ID>/customData
of content type:
application/json
with the following authorisation (the token is copied from the access_token
field that is returned from Generating a Bearer Token):
Bearer <Bearer Token>
Note
The token must be within its TTL and associated with a can-manage-opening-times-rules permission.
The body should use the same objects as in Adding Custom Data to a Store.
Note
The call that you use to update the custom data will overwrite all the existing custom data for the Location ID
. Therefore, you need to supply the same set of objects that you used when adding the custom data, amended as required.
Response
The response from Delivery Options is in JSON format, and will be in the form of an HTTP 200 OK
response if the request is successful. For other possible responses, refer to What are the possible Server Responses?.