chapters

Replace one exact, unique text span in a chapter

A literal patch, not an AI rewrite. old_text must match exactly one place in the chapter's current content or the call fails instead of guessing. Use find_replace for renaming something everywhere it appears.

post/stories/{id}/chapters/{chapterId}/apply-edit

Request

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

Path parameters

idstring uuid required
chapterIdstring uuid required

Request body

old_textstring required

Exact text to replace, copied verbatim from the chapter. Must be unique in the chapter.

new_textstring required

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.