Write authors in bulk
const url = 'https://your-tenant-host/v1/content/custom/authors';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"authors":[{"id":"12","name":"example","url":"example","imageUrl":"example","bio":"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/authors \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "authors": [ { "id": "12", "name": "example", "url": "example", "imageUrl": "example", "bio": "example" } ] }'Writes up to 100 authors, each as PUT takes it plus its id, at most 10 MiB in all. A repeated id: the last wins. 200 answers one result per author, in request order. 422 is only for a malformed request. Safe to retry: 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 author, as PUT takes it, plus its id.
object
The CMS’s author id, as authors[].id on an item. EdgeKit keeps it apart from another source’s same id, and always shows it back as given.
Example
12The byline. Null: the author has none.
The author’s page.
The author’s photo.
A short bio.
Responses
Section titled “Responses”One result per author.
object
object
Open: accept a member not listed. Known: stored.
Example
{ "results": [ { "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." }}