Skip to content

Update a post

PATCH
/v1/posts/{postId}
curl --request PATCH \
--url https://api.spirby.com/v1/posts/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "body": { "json": "example", "text": "" }, "hideFromRoadmap": true, "slug": "example", "status": "open", "tagIds": [ "example" ], "title": "example" }'
postId
required
string
>= 1 characters
Media type application/json
object
body
object
json
text
string
"" <= 50000 characters
hideFromRoadmap
boolean
slug
string
>= 1 characters <= 80 characters /^[a-z0-9]+(?:-[a-z0-9]+)*$/
status
string
Allowed values: open under_review planned in_progress shipped declined duplicate
tagIds
Array<string>
<= 3 items
title
string
>= 1 characters <= 200 characters

Successful response

Media type application/json
object
data
Example generated
{
"data": "example"
}

Missing or invalid API key

Media type application/json
object
error
required
object
code
required
string
details
object
key
additional properties
message
required
string
Example generated
{
"error": {
"code": "example",
"details": {
"additionalProperty": "example"
},
"message": "example"
}
}

Scope insufficient (ERR_SCOPE_INSUFFICIENT) or org in readonly billing state (ERR_FORBIDDEN)

Media type application/json
object
error
required
object
code
required
string
details
object
key
additional properties
message
required
string
Example generated
{
"error": {
"code": "example",
"details": {
"additionalProperty": "example"
},
"message": "example"
}
}

Validation failed

Media type application/json
object
error
required
object
code
required
string
details
object
key
additional properties
message
required
string
Example generated
{
"error": {
"code": "example",
"details": {
"additionalProperty": "example"
},
"message": "example"
}
}

Rate limit exceeded

Media type application/json
object
error
required
object
code
required
string
details
object
key
additional properties
message
required
string
Example generated
{
"error": {
"code": "example",
"details": {
"additionalProperty": "example"
},
"message": "example"
}
}

Internal error

Media type application/json
object
error
required
object
code
required
string
details
object
key
additional properties
message
required
string
Example generated
{
"error": {
"code": "example",
"details": {
"additionalProperty": "example"
},
"message": "example"
}
}