Update Reward Store

Updates a reward store. Send only the fields you want to change. Requires a producer access token for the application.

Once a store is published, only name and sponsor_ids can be changed, and any other field fails with 400. Unpublish the store to edit the rest. The reward item can't be changed while any product in the store is published. A store can have at most one reward item.

reward_item_ids, sponsor_ids and attributes are full replacements. Send the complete list, and send an empty list to clear them. Omitting a field leaves it unchanged. The response is the updated store, in the same shape as Retrieve Reward Store.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The client ID of the application.

uuid
required

The ID of the reward store.

Body Params
string
length ≤ 255

Name of the reward store. Max 255 characters.

reward_item_ids
array of uuids
length ≤ 1

Full replace. At most one reward item, and it must belong to this application.

reward_item_ids
sponsor_ids
array of uuids

Full replace. Sponsors to attach. Each must belong to this application.

sponsor_ids
string

Free text, for example serialized JSON.

attributes
array of objects

Full replace. Both key and value are required on every item. The same key can repeat with different values, but an identical pair twice is rejected.

attributes
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json