Write content items in bulk
const url = 'https://your-tenant-host/v1/content/custom/items';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"items":[{"sourceId":"post-123","language":"en","contentType":"article","contentSubtype":"example","status":"draft","headline":"example","description":"example","promoImage":{"id":"example","url":"https://images.example.com/dress.jpg","alt":"example","caption":"example","credit":"example","width":1,"height":1},"authors":[{"id":"example","name":"example","url":"example","imageUrl":"example","bio":"example"}],"sections":[{"id":"example","key":"example","label":"example","parentId":"example","siteId":"example","primary":true}],"tags":[{"id":"example","key":"example","label":"example"}],"body":[{"additionalProperty":"example"}],"raw":"example","firstPublishedAt":"2026-04-15T12:00:00Z","displayDate":"2026-04-15T12:00:00Z","scheduledAt":"2026-04-15T12:00:00Z","sourceUpdatedAt":"2026-04-15T12:00:00Z","sites":[{"siteId":"example","url":"example"}]}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-tenant-host/v1/content/custom/items \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "items": [ { "sourceId": "post-123", "language": "en", "contentType": "article", "contentSubtype": "example", "status": "draft", "headline": "example", "description": "example", "promoImage": { "id": "example", "url": "https://images.example.com/dress.jpg", "alt": "example", "caption": "example", "credit": "example", "width": 1, "height": 1 }, "authors": [ { "id": "example", "name": "example", "url": "example", "imageUrl": "example", "bio": "example" } ], "sections": [ { "id": "example", "key": "example", "label": "example", "parentId": "example", "siteId": "example", "primary": true } ], "tags": [ { "id": "example", "key": "example", "label": "example" } ], "body": [ { "additionalProperty": "example" } ], "raw": "example", "firstPublishedAt": "2026-04-15T12:00:00Z", "displayDate": "2026-04-15T12:00:00Z", "scheduledAt": "2026-04-15T12:00:00Z", "sourceUpdatedAt": "2026-04-15T12:00:00Z", "sites": [ { "siteId": "example", "url": "example" } ] } ] }'Writes up to 100 items, each as PUT takes it plus its sourceId, at most 10 MiB in all. One refused item stores the rest. 200 answers one result per item, in request order: stored, stale or rejected with its reason. 422 is only for a malformed request. Safe to retry, 503 included: each write is whole.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The content source’s source key, as shown on its page in the console; custom for an organization’s first. It must be pushed: a pulled source, Arc XP or WordPress, answers 409.
Example
customThe content source’s source key, as shown on its page in the console; custom for an organization’s first. It must be pushed: a pulled source, Arc XP or WordPress, answers 409.
Request Bodyrequired
Section titled “Request Bodyrequired”object
At most 100; over is a 413.
One item, as PUT takes it, plus its sourceId.
object
The CMS’s id of the item.
Example
post-123BCP 47, canonicalised (en_gb is en-GB). Null: the source’s default language. Each language is its own locale of the item.
Example
enThe CMS’s own content type, verbatim. One the source does not list is refused as unknown_content_type; a source listing none takes any.
Example
articleThe CMS’s subtype, verbatim.
Only published is searchable. scheduled needs scheduledAt, and goes live when a published write arrives. A delete is the DELETE route.
The headline.
The standfirst or summary.
object
The CMS’s image id.
Absolute https, served verbatim.
Example
https://images.example.com/dress.jpgAlt text.
Caption.
Photo credit.
Bylines, in credit order. Ids are this source’s own, and EdgeKit keeps them apart from another source’s.
object
The CMS’s author id. Null: the byline is keyed on its name, shared with every source crediting that name.
The byline. Null with an id: a reference, which never blanks a byline already stored.
The author’s page.
The author’s photo.
A short bio.
object
Required: null is refused as section_without_id.
A slug.
The section’s name.
The parent section’s id; null at the top.
An EdgeKit site id the section belongs to; null for every site.
The item’s primary section on its site; null when unknown.
object
Required: null is refused as tag_without_id.
A slug.
Portable Text. block and image blocks are checked (invalid_block, invalid_image_url); any other _type is stored as it is.
object
The CMS payload, if wanted. Null: {}.
When the item was first published.
The date the item shows.
When the CMS will publish it. Required with scheduled.
When the CMS last changed it. An older value than the stored one makes the write stale, and it is skipped. Null: the last write wins.
The sites it appears on, each once.
object
An EdgeKit site id. Unknown: the item is refused as unknown_site.
The item’s path on that site, or an absolute http(s) URL. Anything else is refused as invalid_site_url.
Responses
Section titled “Responses”One result per item.
object
object
The locale as stored.
Open: accept a member not listed. Known: stored, stale, rejected.
Open: accept a member not listed. Known: invalid_language, unknown_content_type, scheduled_without_scheduled_at, unknown_site, duplicate_site, invalid_site_url, section_without_id, tag_without_id, author_without_id, invalid_image_url, invalid_block, invalid_value, unknown_item.
Example
{ "results": [ { "result": "stored", "reason": "invalid_language" } ]}Invalid request.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Missing or invalid credential.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Not allowed.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Resource not found.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Conflicts with an existing record.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Request body too large.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Request validation failed.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Unexpected error.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}With Retry-After, briefly unavailable; without it, not configured.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}