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

Request

  • Base URL
    https://api.multigest.pt (the document declares no server; this is the origin it was published from)
  • URL
    https://api.multigest.pt/api/websites/{website_id}/pages/{page_id}/modify
  • Auth
    API key in header x-api-token and API key in header x-origin-verify

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 operation across all 21 revisions of this API.