---
title: "Utility endpoint to submit a batch of sequenced, dependent requests."
method: POST
path: "/sequence"
tags: ["Batch"]
---

# Utility endpoint to submit a batch of sequenced, dependent requests.

`POST /sequence`

The requests are guaranteed to be performed sequentially in the order given in the request and will abort if any request does not return a status-`2xx` response.
For example, this can be used to ban and delete all of a user's messages by sequencing the ban followed by the delete_all: if the ban fails (e.g. because permission is denied) then the delete_all will not occur. The batch body and response are identical to the `/batch` endpoint; requests that are not carried out because of an earlier failure will have a response code of `412` (Precondition Failed)."

## Request body

- … — unresolved $ref; see the full OpenAPI document linked below

## Other responses

- `200` — unresolved $ref

## Changes

- **2022-01-28** `95f09949217a` — 1 breaking
  - the `items/bytes` request property type/format changed from ``/`binary` to `string`/`binary`
- **2022-01-12** `2592dbb08414` — 1 breaking, 2 info
  - the `items/bytes` request property type/format changed from `string`/`byte` to ``/`binary`
  - added the new optional request property `items/b64`
  - added the new optional request property `items/headers`
- **2021-11-10** `fbd68862ef17` — 1 breaking, 2 warning
  - the `items/bytes` request property type/format changed from `string`/`binary` to `string`/`byte`
  - removed the request property `items/b64`
  - removed the request property `items/headers`

[Change history](https://skmtc.dev/oxen-io/apis/session-open-group-server/changes/sequence/post.md)

---

[API](https://skmtc.dev/oxen-io/apis/session-open-group-server.md) · [All operations](https://skmtc.dev/oxen-io/apis/session-open-group-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/oxen-io/session-open-group-server/revisions/51cd37cccd19/schema)
