Write one locale of a content item
const url = 'https://your-tenant-host/v1/content/custom/items/post-123';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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 PUT \ --url https://your-tenant-host/v1/content/custom/items/post-123 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "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 one locale of one item of a pushed content source, its whole state: every field is required and null clears it. Never touches the item’s other locales. Needs a key holding content:write; its site pin is not read. At most 2 MiB. 200 answers stored, or stale when sourceUpdatedAt is older than the stored one, and nothing changed. A refused item is a 422 whose error.code says why: 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 or invalid_value (a NUL character in text). Safe to retry, 503 included: the write is whole, and an equal sourceUpdatedAt applies again.
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.
The CMS’s id of the item.
Example
post-123The CMS’s id of the item.
Request Bodyrequired
Section titled “Request Bodyrequired”object
BCP 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”Stored, or skipped as stale.
object
Open: accept a member not listed. Known: stored, stale.
Example
{ "result": "stored"}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." }}