Re-read changed items from the CMS
const url = 'https://your-tenant-host/v1/content/sync?source=wordpress';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"source":"wordpress","events":[{"id":"example","type":"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/sync?source=wordpress' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "source": "wordpress", "events": [ { "id": "example", "type": "example" } ] }'Enqueues one re-read per id from one of the organization’s pulled content sources, named by its source key as source in the body or the query. The body names ids and never content, so a caller can cause a refetch and nothing else. 200 means enqueued. 422: no source, or it names no pulled source. Safe to retry: re-reads of one id within seconds are debounced into one.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The source key, for a caller that cannot put source in the body. The body’s wins.
Example
wordpressThe source key, for a caller that cannot put source in the body. The body’s wins.
Request Body
Section titled “Request Body”object
The source key of the content source the ids belong to, as shown on its page in the console. It must be pulled. Required here or as the source query parameter.
Example
wordpressobject
The CMS id of the item that changed. Arc XP: the story or author _id. WordPress: the post or user id, as a string.
The CMS content type, when known. author re-reads one author. Arc XP: absent is story, and any other type is accepted and ignored. WordPress: any other value or none re-reads a post, whatever its post type.
Responses
Section titled “Responses”Enqueued.
object
Example
{ "success": true}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." }}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." }}