Skip to main content

Create or replace an item

PUT 

/api/v1/collections/:collection_id/items/:key

Writes data at key: 201 when the key was free, 200 when it replaced an item. tags replace the bag when sent and leave it alone when omitted. data is at most 64 KB as JSON and must satisfy the collection's schema. A precondition (If-Match or expected_version) names a version of an existing item, so it is 404 for a free key.

Request​

Responses​

Item replaced