Skip to main content
POST
Force refresh catalog

Authorizations

x-stash-hmac-signature
string
header
required

Versioned HMAC-SHA256 signature authenticating server-to-server SDK requests (your backend calling Stash), as opposed to client-side SDK operations. Recommended over the deprecated X-Stash-Api-Key for the best security. Header format: v1;{appId};{unixMillisTimestamp};{base64Signature} (semicolon-delimited). {base64Signature} is the base64-encoded HMAC-SHA256 of the string {unixMillisTimestamp}.{requestBody} using your app ingress secret (the ingress secret is shown base64-encoded in Studio; base64-decode it to the raw bytes used as the HMAC key), where {requestBody} is the request body exactly as you send it for POST and PUT requests (the compact canonical request JSON is also accepted) and empty for GET requests. A signature over the exact bytes verifies for bodies of up to 18 KiB (18,432 bytes); a larger body may be refused with 401 even when correctly signed. The timestamp must be within 5 minutes of Stash server time. Your appId is your immutable app identifier, shown in Stash Studio under Project Settings > App details; your ingress secret is under Project Settings > API Secrets.

Body

application/json
playerId
string

Deprecated: use player_ids. Refreshes the catalog of this one player; it still works, and a player_id sent alongside player_ids is refreshed too. Never leave out both player_id and player_ids unless you know exactly what you are doing: a request that names no player forces a catalog refresh for every single player of your shop, which can make the Web Shop much slower for all players across the board and cause a spike of API calls to your external catalog API server.

playerIds
string[]

The players whose catalogs to refresh, at most 100 ids of 1 to 128 characters each, using printable ASCII other than spaces, double quotes and backslashes. Send every player you want refreshed in one request instead of one request per player. Each player is refreshed once however often the id repeats, and an id with no cached catalog is accepted and changes nothing. Send at least one id: a request signed with HMAC that sends an empty list is refused, and a request that leaves out both player_ids and player_id refreshes every player of your shop. A player_id sent alongside the list is refreshed too.

Response

A successful response.

refreshed
boolean

True when the catalog was refreshed. False when the shop does not use a real-time catalog integration and the call was a no-op.