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.

patch/{client_id}/reward-stores/{id}/

Request

  • Base URL
    https://cf-blast.livelikecdn.com/api/v1/applications
  • URL
    https://cf-blast.livelikecdn.com/api/v1/applications/{client_id}/reward-stores/{id}/
  • Auth
    API key in header Authorization

Path parameters

client_idstring required

The client ID of the application.

idstring uuid required

The ID of the reward store.

Request body

namestring

Name of the reward store. Max 255 characters.

reward_item_idsstring[]

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

sponsor_idsstring[]

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

custom_datastring

Free text, for example serialized JSON.

Response

OK. The updated store.

idstring uuid
namestring
statestring

Changes

No recorded changes to this operation across all 1 revision of this API.