POST/api/v1/articles/bulk/publish
Publish multiple articles
Publishes every id in a single transaction with a single RSS refresh. Atomic: the first failure rolls back all changes. Duplicate ids are published once. Accepts 1-100 ids.
ReturnsResponseListArticleView
AcceptsBulkPublishRequest
Response examples
200All articles published
*/* example derived from schema
{
"statusCode": 0,
"statusMessage": "string",
"data": [
{
"id": 0,
"slug": "string",
"title": "string",
"body": "string"
}
],
"errors": [
{
"code": "string",
"message": "string",
"field": "string"
}
]
}400Empty id list, or an article failed validation (ARTICLEVALIDATIONFAILED)
*/* example derived from schema
{
"statusCode": 0,
"statusMessage": "string",
"data": [
{
"id": 0,
"slug": "string",
"title": "string",
"body": "string"
}
],
"errors": [
{
"code": "string",
"message": "string",
"field": "string"
}
]
}404Unknown id, or id belongs to another tenant (ARTICLENOTFOUND)
*/* example derived from schema
{
"statusCode": 0,
"statusMessage": "string",
"data": [
{
"id": 0,
"slug": "string",
"title": "string",
"body": "string"
}
],
"errors": [
{
"code": "string",
"message": "string",
"field": "string"
}
]
}409An article is not publishable (PUBLICATIONINVALIDTRANSITION)
*/* example derived from schema
{
"statusCode": 0,
"statusMessage": "string",
"data": [
{
"id": 0,
"slug": "string",
"title": "string",
"body": "string"
}
],
"errors": [
{
"code": "string",
"message": "string",
"field": "string"
}
]
}