Update a retail store group
Fully updates a retail store group. name, slug, and stores are required.
The listed stores become the group's exact members: stores of the group that are not listed are detached from it, and a listed store that belongs to another group is moved to this group (see Store Membership in the section description).
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 creating or fully updating a retail store group.
The group name.
Istanbul StoresThe unique identifier of the group, made of letters, numbers, underscores, or hyphens. Must not already belong to another group.
istanbul-storesPattern: ^[-a-zA-Z0-9_]+$The identifiers of the retail stores in the group; an empty list is accepted. The listed stores become the group's exact members — a store of another group is moved to this group, and on update, stores of the group that are not listed are detached from it.
[1,133]Whether the group is active. When left out, a create stores true and a full update keeps the stored value (form-encoded requests differ — see Form-Encoded Requests in the section description).
trueThe 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.
PUT /api/v1/remote/1/retailstoregroups/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 85
{
"name": "Istanbul Stores",
"slug": "istanbul-stores",
"stores": [
1,
133
],
"is_active": true
}{
"pk": 1,
"is_active": true,
"name": "Istanbul Stores",
"stores": [
1,
133
],
"slug": "istanbul-stores",
"schedules": []
}Last updated
Was this helpful?

