Sites
Upsert collection items
Creates or updates items by `slug`. Existing items keep fields a row leaves out and keep their status; new items are drafts; nothing is published. Up to 200 rows run inline; more return a `jobId` to poll with `GET /jobs/{jobId}`.
Creates or updates items by slug. Existing items keep fields a row leaves out and keep their status; new items are drafts; nothing is published. Up to 200 rows run inline; more return a jobId to poll with GET /jobs/{jobId}.
x-api-key<token>
In: header
Path Parameters
siteId*string
collectionId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/sites/string/collections/string/upsert" \ -H "Content-Type: application/json" \ -d '{ "rows": [ { "slug": "string", "data": { "name": "string" } } ] }'{ "data": { "kind": "inline", "created": 0, "updated": 0, "failed": [ { "row": 0, "slug": "string", "message": "string" } ] }}
Planeward Docs