Skip to content

Write an author

PUT
/v1/content/{source}/authors/{id}
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.

source
required

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.

string

Example

custom

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.

id
required

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.

string
>= 1 characters <= 256 characters

Example

12

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.

Media typeapplication/json
object
name
required

The byline. Null: the author has none.

string | null
url
required

The author’s page.

string | null
imageUrl
required

The author’s photo.

string | null
bio
required

A short bio.

string | null

Example generated

{
"name": "example",
"url": "example",
"imageUrl": "example",
"bio": "example"
}

Stored.

Media typeapplication/json
object
result
required

Open: accept a member not listed. Known: stored.

string

Example

{
"result": "stored"
}

Invalid request.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Missing or invalid credential.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Not allowed.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Resource not found.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Conflicts with an existing record.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Request body too large.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Request validation failed.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Unexpected error.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

edgekit.ai