Skip to content

Write authors in bulk

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

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.

Media typeapplication/json
object
authors
required

At most 100; over is a 413.

Array<object>

One author, as PUT takes it, plus its id.

object
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
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

One result per author.

Media typeapplication/json
object
results
required
Array<object>
object
id
required
string
result
required

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

string

Example

{
"results": [
{
"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