POST/api/v1/articles/bulk/unpublish
Unpublish multiple articles
Unpublishes every id in a single transaction with a single RSS refresh. Atomic: the first failure rolls back all changes. Duplicate ids are unpublished once. Accepts 1-100 ids.
ReturnsResponseListArticleView
AcceptsBulkIdsRequest
Response examples
200All articles unpublished
*/* 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 (VALIDATION_ERROR)
*/* 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 published (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"
}
]
}