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

Partially update a slot suspender

Updates a slot suspender field by field. Only the fields present in the request are changed; the others keep their current values. A retail_store_config or time_config that is included is replaced as a whole and validated against its selected rule.

patch
/slot_suspenders/{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 slot suspender.

Body

The body of a slot suspender partial update request. Only the fields included in the body are changed; every field is optional. A retail_store_config or time_config that is included is replaced as a whole.

descriptionstring · max: 255Optional

A human-readable description of the suspender.

is_activebooleanOptional

Whether the suspender is active.

Responses
200

The updated slot suspender.

application/json

A slot suspender — a rule that blocks delivery slots for a combination of stores and times.

pkintegerRead-onlyOptional

The unique identifier of the slot suspender.

created_datestring · date-timeRead-onlyOptional

When the suspender was created.

modified_datestring · date-timeRead-onlyOptional

When the suspender was last modified.

descriptionstring · max: 255Optional

A human-readable description of the suspender.

is_activebooleanOptional

Whether the suspender is active. Only active suspenders are evaluated during slot generation.

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

{
  "is_active": false
}
{
  "pk": 1,
  "created_date": "2026-01-01T00:00:00.000Z",
  "modified_date": "2026-01-01T00:00:00.000Z",
  "description": "text",
  "retail_store_config": {
    "rule": "retail_store",
    "params": {
      "retail_stores": [
        "STORE_1",
        "STORE_2"
      ],
      "exclude": false
    }
  },
  "time_config": {
    "rule": "date_time_range",
    "params": {
      "ranges": [
        [
          "2026-01-01T09:00:00+03:00",
          "2026-01-01T12:00:00+03:00"
        ]
      ]
    }
  },
  "is_active": true
}

Last updated

Was this helpful?