---
title: EditRequest
description: '`POST <endpoint>/edit/` takes this JSON body.'
updated_at: '2026-11-19T08:27:17+01:00'
created_at: '2026-11-11T18:21:28+01:00'
symbol:
  kind: interface
  name: EditRequest
  signatures:
    - interface EditRequest
  members:
    - name: submissionId
      kind: property
      signature: 'readonly submissionId: string'
      description: >-
        Names this edit across retries, matching `SUBMISSION_ID_PATTERN`. The
        editor makes one per opened panel; the server names the branch after it,
        so a retry finds the pull request an earlier attempt opened.
    - name: page
      kind: property
      signature: 'readonly page: string'
      description: 'The note''s URL path inside the deployment, such as `/guides/setup/`.'
    - name: markdown
      kind: property
      signature: 'readonly markdown: string'
    - name: note
      kind: property
      signature: 'readonly note?: string'
    - name: sha
      kind: property
      signature: 'readonly sha?: string'
      description: >-
        The blob SHA of the source the edit was written against, from
        [[reference/api/plugin-submissions/SourceResponse|SourceResponse.sha]].
        Required for a save that commits: when the branch's file has another,
        the save opens a pull request instead.
    - name: turnstileToken
      kind: property
      signature: 'readonly turnstileToken?: string'
      description: >-
        The Turnstile widget's token; required when the site configures
        `guard.turnstile`.
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugin-submissions/src/api.ts#L59
---

# EditRequest
