Technical GEO Reports

Edit llms.txt report content

Changed on

Replaces the llms.txt and llms-full.txt files of a completed llms_txt report in place, without generating them again. edits maps llms_txt and/or llms_full_txt to the full replacement text. content_version must equal result_data.content_version of the report as last read; when the report changed since, the edit is refused as stale and the message names the current version. A missing or stale content_version, a blank file, a file over 200,000 characters, a value that is not text, an unknown file key, an empty edits object, a report that has not completed or a report_type other than llms_txt is rejected with ERR_INVALID_PARAM and nothing is written. Files are stored with Unix line endings and one trailing newline. A file identical to the stored one is ignored, and the response lists the files that actually changed. The first edit keeps the generated files in original_llms_txt_content and original_llms_full_txt_content so POST /technical_geo_reports/{id}/revert_content can restore them; running the report again creates a new report without these edits. Requires a read_write scope API key and, for team members, create permission on GEO Audits.

patch/technical_geo_reports/{id}/content

Request

  • Base URL
    https://api.llmpulse.ai/api/v1
  • URL
    https://api.llmpulse.ai/api/v1/technical_geo_reports/{id}/content
  • Auth
    API key in header Authorization

Path parameters

idinteger required

Report id returned by POST /technical_geo_reports or GET /technical_geo_reports

Request body

project_idinteger required
report_type'llms_txt' required

Only llms_txt reports have editable content

content_versionstring required

result_data.content_version of the report as last read. It changes on every save; a value that no longer matches is refused as stale

Example request

{
  "content_version": "1790683200123456",
  "edits": {
    "llms_txt": "# example.com\n\n> What example.com does, in one paragraph.\n"
  }
}

Response

The report with its current files, plus the files that changed

idinteger
report_typestring

Always llms_txt

project_idinteger
batch_idinteger nullable

Bundle the report was created in; null for a report created on its own

urlstring nullable

Always null for llms_txt reports; domain names the website

domainstring
country_codestring nullable
output_language_codestring nullable

ISO 639-1 code the files were requested in; null when they are written in the website's own language

statusstring
result_availableboolean
overall_scorenumber nullable

Always null for llms_txt reports

created_atstring date-time
updated_atstring date-time
error_messagestring nullable
poll_after_secondsinteger nullable

Seconds to wait before polling again while the report runs; null once it has finished

app_urlstring uri

Opens this report in the app

request_idstring
changed_filesstring[]

Files whose text actually changed; empty when every file matched the stored text

Changes