Skip to main content
PATCH
/
v1
/
authors
/
{identifier}
Update author
curl --request PATCH \
  --url https://api.marblecms.com/v1/authors/{identifier} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "John Doe",
  "slug": "john-doe",
  "bio": "Updated bio",
  "role": "Senior Editor",
  "email": "john@example.com",
  "image": "https://media.marblecms.com/new-avatar.jpg",
  "socials": [
    {
      "platform": "x",
      "url": "https://x.com/johndoe"
    }
  ]
}
'
{
  "author": {
    "id": "cryitfjp3456lm06xfpzcgl0",
    "name": "John Doe",
    "slug": "john-doe",
    "bio": "Technical writer and developer",
    "role": "Editor",
    "image": "https://media.marblecms.com/avatar.jpg",
    "socials": [
      {
        "url": "https://twitter.com/johndoe",
        "platform": "twitter"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Your Marble API key

Path Parameters

identifier
string
required

Author ID or slug

Example:

"john-doe"

Body

application/json
name
string
Minimum string length: 1
Example:

"John Doe"

slug
string
Minimum string length: 1
Example:

"john-doe"

bio
string | null
Example:

"Updated bio"

role
string | null
Example:

"Senior Editor"

email
string<email> | null
Example:

"john@example.com"

image
string<uri> | null
Example:

"https://media.marblecms.com/new-avatar.jpg"

socials
object[]

Social media links. Replaces all existing socials when provided.

Response

Author updated successfully

author
object
required