Skip to main content
PATCH
/
media
/
chapters
/
{chapterId}
Update chapter
curl --request PATCH \
  --url https://api.thehaystack.ai/v2/haystack/media/chapters/{chapterId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "startMs": 123,
  "suggested": true,
  "accepted": true
}
'
{
  "chapter": {
    "id": 123,
    "itemId": 123,
    "mediaAssetId": 123,
    "title": "Introduction",
    "startMs": 123,
    "suggested": true,
    "accepted": true,
    "hidden": true
  }
}

Authorizations

Authorization
string
header
required

Enter your API token from the Haystack dashboard

Path Parameters

chapterId
integer
required

Body

application/json
title
string
startMs
integer
suggested
boolean | null
accepted
boolean | null

Response

200 - application/json

Updated chapter

chapter
object