API referenceChapters
Rewrite a script block
Replace a block's text.
Timing derived from the OLD text — pauses, silence trims, scene anchors — is cleared, because offsets into replaced text would be meaningless. Re-anchor scenes afterwards if the block carried any.
Authorization
bearerAuth AuthorizationBearer <token>
Typecut API key. Generate one in app.typecut.ai → Settings → API keys. Send as Authorization: Bearer tc_live_….
In: header
Path Parameters
chapterId*string
Format
uuidblockId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
content*string
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/chapters/497f6eca-6276-4993-bfeb-53cbbbba6f08/blocks/string" \ -H "Content-Type: application/json" \ -d '{ "content": "string" }'{
"data": {
"block_id": "string"
}
}{
"error": {
"type": "string",
"code": "string",
"message": "string"
}
}{
"error": {
"type": "string",
"code": "string",
"message": "string"
}
}{
"error": {
"type": "string",
"code": "string",
"message": "string"
}
}{
"error": {
"type": "string",
"code": "string",
"message": "string"
}
}