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.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the retail store group.
Request body for partially updating a retail store group. Every field is optional and keeps its stored value when left out.
The group name.
The unique identifier of the group. Must not already belong to another group.
^[-a-zA-Z0-9_]+$When sent, replaces the group's membership — see RetailStoreGroupRequest.stores. Send an empty list to detach every store.
Whether the group is active.
The updated retail store group.
A retail store group — a named group of retail stores, used by schedules and slot suspender rules.
The unique identifier of the group.
1Whether the group is active. Not checked when schedules or slot suspender rules are matched to a group.
trueExample: trueThe group name.
Istanbul StoresThe identifiers of the retail stores in the group.
[1,133]The unique identifier of the group. Referenced by slot suspender rules.
istanbul-storesPattern: ^[-a-zA-Z0-9_]+$The identifiers of the schedules assigned to the group.
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The requested retail store group does not exist.
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?

