AI Page Generator - Protected

Modify Existing Page

Modify an existing page using AI based on user instructions.

This endpoint allows conversational AI modifications:

  1. Fetches the existing page blocks
  2. Uses AI to modify the page based on user instructions
  3. Maintains consistency with the website theme
  4. Updates the page in database and re-uploads to S3

You can call this endpoint multiple times for iterative refinement.

Example instructions:

  • "Add a testimonials section after the services section"
  • "Change the hero banner background to gradient style"
  • "Remove the pricing section and add a contact form instead"
  • "Make the text more professional and formal"
post/api/websites/{website_id}/pages/{page_id}/modify

Path parameters

website_idinteger required
page_idinteger required

Headers

x-api-tokenstring nullable

Request body

instructionsstring required

Response

Successful Response

successboolean required
page_idinteger required
slugstring required
blocks_updatedinteger required
messagestring required

Changes

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