Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Partially update a retail store group

Updates only the fields sent. When stores is sent, it replaces the group's membership exactly as a full update does; when it is left out, the membership is unchanged. Send "stores": [] to detach every store, for example before deleting the group.

patch
/retailstoregroups/{id}/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Path parameters
idintegerRequired

The unique identifier of the retail store group.

Body

Request body for partially updating a retail store group. Every field is optional and keeps its stored value when left out.

namestring · max: 255Optional

The group name.

slugstring · max: 64Optional

The unique identifier of the group. Must not already belong to another group.

Pattern: ^[-a-zA-Z0-9_]+$
storesinteger[]Optional

When sent, replaces the group's membership — see RetailStoreGroupRequest.stores. Send an empty list to detach every store.

is_activebooleanOptional

Whether the group is active.

Responses
200

The updated retail store group.

application/json

A retail store group — a named group of retail stores, used by schedules and slot suspender rules.

pkintegerRead-onlyOptional

The unique identifier of the group.

Example: 1
is_activebooleanOptional

Whether the group is active. Not checked when schedules or slot suspender rules are matched to a group.

Default: trueExample: true
namestring · max: 255Optional

The group name.

Example: Istanbul Stores
storesinteger[]Optional

The identifiers of the retail stores in the group.

Example: [1,133]
slugstring · max: 64Optional

The unique identifier of the group. Referenced by slot suspender rules.

Example: istanbul-storesPattern: ^[-a-zA-Z0-9_]+$
schedulesinteger[]Read-onlyOptional

The identifiers of the schedules assigned to the group.

patch/retailstoregroups/{id}/
PATCH /api/v1/remote/1/retailstoregroups/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 58

{
  "name": "text",
  "slug": "text",
  "stores": [],
  "is_active": true
}
{
  "pk": 1,
  "is_active": true,
  "name": "Istanbul Stores",
  "stores": [
    1,
    133
  ],
  "slug": "istanbul-stores",
  "schedules": []
}

Last updated

Was this helpful?