alpha

Edit text websites

Change one piece of text in a website Alpha built, with no model turn: the version (its id), the element's source location as Alpha Chat's preview element picker reports it (path, line, column), the text the element shows, and its new text. The text must be one JSX text or string literal inside that element in the version's source; the edited source is built and accepted exactly as Alpha's own revisions are, which can take a few minutes, and saved as the website's next version, which is returned. Refused while new Alpha work is closed, while acting as another member, while another edit of the version builds, and while a turn of its conversation runs.

post/api/v1/alpha/websites/edit-text

Request

  • Base URL: https://point11.ai
  • URL: https://point11.ai/api/v1/alpha/websites/edit-text
  • Auth: OAuth 2 (authorization code, authorization URL https://auth.point11.ai/oauth2/authorize, token URL https://auth.point11.ai/oauth2/token)

Headers

Point11-Organizationstring uuid

Organization to act in. Required for OAuth bearers; an API key acts in the organization that owns it.

Idempotency-Keystring uuid required

UUID naming this intent. Retry with the same key; reuse for other input is 409.

Request body

idstring required

The website version shown when the element was picked

pathstring required

The source file the element picker named (data-p11-src)

lineinteger required

The element's one-based line in that file

columninteger required

The element's one-based column on that line

findstring required

The text the element shows

replacestring required

The text it should show

Response

Success.

artifactIdstring uuid required
kind'markdown' | 'slides' | 'image' | 'audio' | 'video' | 'brand_kit' | 'presentation' | 'spreadsheet' | 'word' | 'pdf' | 'csv' | 'page' required
titlestring required
mediaType'text/markdown' | 'application/vnd.point11.slides+json' | 'image/png' | 'image/jpeg' | 'image/webp' | 'audio/mpeg' | 'audio/wav' | 'video/mp4' | 'video/webm' | 'application/vnd.point11.brand-kit+json' | 'application/vnd.openxmlformats-officedocument.presentationml.presentation' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' | 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' | 'application/pdf' | 'text/csv' | 'text/html' | 'application/vnd.point11.website+json' required
byteLengthinteger required
status'ready'
revisesArtifactIdstring uuid
brandNamestring
slideCountinteger
previewArtifactIdstring uuid
previewFailure'render_failed' | 'invalid_preview' | 'upload_failed'
websitePreviewFailure'capture_failed' | 'upload_failed'
purpose'deliverable' | 'working'

Changes

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