Skip to main content
PUT
/
templates
/
{uid}
Update template
curl --request PUT \
  --url https://api.pictify.io/templates/{uid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "html": "<string>",
  "fabricJSData": {},
  "width": 123,
  "height": 123,
  "variableDefinitions": [
    {
      "name": "<string>",
      "type": "text",
      "defaultValue": "<string>",
      "description": "<string>",
      "validation": {
        "required": true,
        "minLength": 123,
        "maxLength": 123
      }
    }
  ]
}
'
{
  "template": {
    "uid": "<string>",
    "name": "<string>",
    "type": "<string>",
    "category": "<string>",
    "tags": [
      "<string>"
    ],
    "width": 123,
    "height": 123,
    "thumbnail": "<string>",
    "outputFormat": "image",
    "variableDefinitions": [
      {
        "name": "<string>",
        "type": "text",
        "defaultValue": "<string>",
        "description": "<string>",
        "validation": {
          "required": true,
          "minLength": 123,
          "maxLength": 123
        }
      }
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key obtained from the Pictify dashboard

Path Parameters

uid
string
required

Body

application/json
name
string
html
string
fabricJSData
object
width
integer
height
integer
variableDefinitions
object[]

Response

200 - application/json

Template updated

template
object