Skip to main content
POST
/
api
/
v1
/
templates
/
{id}
/
duplicate
Duplicate a template
curl --request POST \
  --url https://app.sajn.se/api/v1/templates/{id}/duplicate \
  --header 'authorization: <authorization>'
{
  "id": "<string>",
  "name": "<string>",
  "workspaceId": "<string>",
  "organizationId": "<string>",
  "createdById": "<string>",
  "isGlobal": true,
  "createdAt": "<unknown>",
  "updatedAt": "<unknown>",
  "templateMeta": {
    "forceReadFullDocument": true,
    "showChatToSigners": true,
    "value": "<string>",
    "signableAfterExpired": true,
    "sendPlainTextEmailOnly": true,
    "allowDelegation": true,
    "reminderIntervalDays": "<string>",
    "responsibleUserId": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.sajn.se/llms.txt

Use this file to discover all available pages before exploring further.

Headers

authorization
string
required

Bearer token for API authentication

Path Parameters

id
string
required

Response

200

id
string
required

Unique template identifier

name
string
required

Template name/title

workspaceId
string | null
required

Workspace ID this template belongs to

organizationId
string | null
required

Organization ID this template belongs to

createdById
string
required

User ID of the template creator

isGlobal
boolean
required

Whether this is a global template

createdAt
any
required

Date and time when the template was created

updatedAt
any
required

Date and time when the template was last updated

templateMeta
object

Template metadata with default settings