Content

Revise Content Draft

Changed on

Rewrite an existing content draft from a natural-language instruction (for example: 'tighten the intro', 'add a section on pricing', 'remove the second half'). An AI model performs the rewrite server-side, so the result is generated text, not your literal wording; when you already have the exact replacement text, use the edit endpoint instead. Applies the change to the whole article and records it as a new version, so earlier passes stay recoverable via get_content_versions / restore_content_version. Iterate by calling it again — each call starts from the current text, so no version id is needed. Use this instead of create_content to change a draft; it edits in place rather than generating a new piece. The returned body is always the complete replacement article, never just the edited passage; compare body_word_count with previous_body_word_count to confirm nothing unexpected was lost.

post/api/v1/content/{content_id}/revise

Request

  • Base URL
    https://api.athenahq.ai
  • Auth
    API key in header x-api-key

Path parameters

content_idstring required

Request body

website_idstring required
instructionstring required

Response

Success

content_idstring required
bodystring required
version_numberinteger required
version_idstring required
body_word_countinteger required
previous_body_word_countinteger required

Changes

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status