chapters

Update a chapter or scene's title, content, or position

Full replacement of content when provided -- e.g. save generated prose into a chapter. Chapters are stored as plain text with a blank line between paragraphs.

patch/stories/{id}/chapters/{chapterId}

Request

  • Base URL: https://aistoryhub.co/api/v1
  • URL: https://aistoryhub.co/api/v1/stories/{id}/chapters/{chapterId}
  • Auth: HTTP bearer

Path parameters

idstring uuid required
chapterIdstring uuid required

Request body

titlestring
contentstring
order_indexinteger

Response

The updated chapter.

idstring uuid
titlestring
type'chapter' | 'scene'
orderinteger
word_countinteger
updated_atstring date-time nullable
contentstring

Changes

No recorded changes to this operation across all 1 revision of this API.