Skip to main content
POST
/
items
/
{itemId}
/
publish
Publish item
curl --request POST \
  --url https://api.thehaystack.ai/v2/bevly/items/{itemId}/publish \
  --header 'Authorization: Bearer <token>'
{
  "item": {
    "id": 123,
    "title": "The Power of Prayer",
    "subTitle": "<string>",
    "description": "<string>",
    "date": "2025-01-15",
    "collectionId": 123,
    "seriesId": 123,
    "status": "draft",
    "publishedDate": "2023-11-07T05:31:56Z",
    "autoPublish": true,
    "urlSlug": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Enter your API token from the Haystack dashboard

Path Parameters

itemId
integer
required

Response

200 - application/json

Item published

item
object