Skip to Content

Update the form document

You're viewing API version 2026-09, which is deprecated and stops working on October 1, 2027. To move your integration, see Upgrading to 2026-10.
PATCH
/api/v1/forms/{id}/document

Change its name, signing order and document defaults. Settings omitted from the request stay unchanged. Changes apply to future submissions only. Requires forms:write and documents:write, including for drafts.

Authorization

headerAuthorizationBearer <token>

Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.

Path Parameters

id*string

Header Parameters

authorization*string

Bearer token for API authentication

Idempotency-Key?string

Makes retries safe. A retry with the same key and the same request replays the stored response for 24 hours (header Idempotent-Replayed: true); the same key with a different request returns 400.

Lengthlength <= 255

Request Body

Body

application/json
  1. body
name?string

Template name/title

Length1 <= length
templateMeta?

Response Body

200

application/json
  1. response
success*boolean
Example Request
curl -X PATCH 'https://app.sajn.se/api/v1/forms/string/document' \  -H 'authorization: string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "success": true}

Was this page helpful?