Skip to content

Update blog post

PUT
/v1/brands/{brandId}/posts/{postId}
curl --request PUT \
--url https://kynectlocal-production.up.railway.app/v1/v1/brands/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/posts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'
brandId
required
string format: uuid

Brand identifier

postId
required
string format: uuid

Success

Media type application/json
object
data
required
object
post
required
object
id
required

Post identifier

string format: uuid
brandId
required

Parent brand

string format: uuid
title
required

Post title

string
slug
required

URL-safe post slug

string
status
required

Publication status

string
Allowed values: DRAFT PUBLISHED SCHEDULED
publishedAt
required

Publication timestamp

string | null format: date-time
scheduledFor
required

Scheduled publication timestamp

string | null format: date-time
featuredImageUrl
required

Featured image URL

string | null
excerpt
required

Post excerpt

string | null
categories
required

Post categories

Array<string>
seoTitle
required

SEO title override

string | null
seoDescription
required

SEO description override

string | null
seoNoindex
required

Whether this post is excluded from search indexing

boolean
createdAt
required

Creation timestamp

string format: date-time
updatedAt
required

Last update timestamp

string format: date-time
body

Post body (Puck JSON content)

seoOgImage
required

OG image URL override

string | null
seoFocusKeyphrase
required

SEO focus keyphrase

string | null
seoCanonicalUrl
required

Canonical URL override

string | null
Example
{
"data": {
"post": {
"status": "DRAFT"
}
}
}

Validation error

Media type application/json
object
error
required

Error envelope

object
code
required

Machine-readable error code

string
message
required

Human-readable error description

string
details

Additional context, e.g. validation field errors

Example generated
{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}

Unauthenticated

Media type application/json
object
error
required

Error envelope

object
code
required

Machine-readable error code

string
message
required

Human-readable error description

string
details

Additional context, e.g. validation field errors

Example generated
{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}

Forbidden

Media type application/json
object
error
required

Error envelope

object
code
required

Machine-readable error code

string
message
required

Human-readable error description

string
details

Additional context, e.g. validation field errors

Example generated
{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}

Not found

Media type application/json
object
error
required

Error envelope

object
code
required

Machine-readable error code

string
message
required

Human-readable error description

string
details

Additional context, e.g. validation field errors

Example generated
{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}

Unprocessable

Media type application/json
object
error
required

Error envelope

object
code
required

Machine-readable error code

string
message
required

Human-readable error description

string
details

Additional context, e.g. validation field errors

Example generated
{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}