Skip to main content
PATCH
Add, update and delete many dataset items

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

dataset_id
string<uuid>
required

Dataset UUID

Body

application/json

One bulk add/update/delete. Both halves are optional, but at least one of them must be non-empty, and their combined length is capped (by default at the dataset item cap, 10,000). An item id may appear only once across both lists.

base_version
required

Optimistic-concurrency check: the dataset version the caller read. The whole request is refused with 409 if any id it names has a revision committed above that version.

items
object[]

Items to add or update. Each entry is the whole item, in exactly the shape the POST accepts — an absent field is an empty field, not "keep the current value". An entry with no id, or with an id that is not currently live, creates a new item.

delete_ids
string<uuid>[]

Ids to delete. Every id must name a live item of this dataset; if any does not, the whole batch is refused with 404.

Response

The batch was applied. The four id lists partition the ids the request named.

Response object for standard API responses.

api_version
enum<string>
default:3.0

API version.

Available options:
2.0,
3.0
kind
enum<string>
default:NORMAL

Type of response, indicating a normal response.

Available options:
NORMAL
data
object

The outcome of a bulk request, per id rather than as a count: the four lists partition the ids the request named. An id in unchanged_ids was submitted with content identical to what was already stored, so no revision was written for it.