Skip to Content

Update a template

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/templates/{id}

Update template properties.

Updatable Fields:

  • name - Template name
  • templateMeta - Default settings for documents created from this template (signing order, preferred language, etc.)

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

Update template request

name?string

Template name/title

Length1 <= length
templateMeta?

Template metadata defaults

Response Body

200

application/json
  1. response
id*string

Unique template identifier

name*string

Template name/title

workspaceId*|

Workspace ID this template belongs to

organizationId*|

Organization ID this template belongs to

createdById*string

User ID of the template creator

isGlobal*boolean

Whether this is a global template

templateMeta?|

Template metadata with default settings

createdAt*string

Date and time when the template was created

Formatdate-time
updatedAt*string

Date and time when the template was last updated

Formatdate-time
Example Request
curl -X PATCH 'https://app.sajn.se/api/v1/templates/string' \  -H 'authorization: string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "name": "string",  "workspaceId": "string",  "organizationId": "string",  "createdById": "string",  "isGlobal": true,  "templateMeta": {    "signingOrder": "PARALLEL",    "forceReadFullDocument": true,    "showChatToSigners": true,    "preferredLanguage": "sv",    "value": "string",    "signableAfterExpired": true,    "sendPlainTextEmailOnly": true,    "allowDelegation": true,    "reminderIntervalDays": "string",    "responsibleUserId": "string",    "accessVerification": "NONE",    "internalRecipients": [      "string"    ],    "visibility": "EVERYONE",    "selectedUserIds": [      "string"    ],    "ssnDisplayMode": "FULL",    "sameDeviceSigning": true,    "documentCategoryId": "string"  },  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}

Was this page helpful?