Write an author
const url = 'https://your-tenant-host/v1/content/custom/authors/12';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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 PUT \ --url https://your-tenant-host/v1/content/custom/authors/12 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "url": "example", "imageUrl": "example", "bio": "example" }'Writes one author of a pushed content source, its whole profile: every field is required and null clears it, where an item’s inline credit only fills in. The id is this source’s own, kept apart from another source’s. Needs a key holding content:write; its site pin is not read. At most 2 MiB. Authors are never deleted. Safe to retry: the 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.
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 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.
Request Bodyrequired
Section titled “Request Bodyrequired”object
The byline. Null: the author has none.
The author’s page.
The author’s photo.
A short bio.
Example generated
{ "name": "example", "url": "example", "imageUrl": "example", "bio": "example"}Responses
Section titled “Responses”Stored.
object
Open: accept a member not listed. Known: stored.
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." }}