Skip to main content
PATCH
/
templates
/
{id}
Update template metadata
curl --request PATCH \
  --url https://api.lithoblocks.com/templates/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "type": "<string>",
  "user_name": "<string>",
  "icon_emoji": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "type": "<string>",
  "userName": "<string>",
  "iconEmoji": "<string>",
  "updatedAt": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

LithoBlocks API key obtained from your organization dashboard

Path Parameters

id
string
required

Body

application/json

Template update data

name
string
Required string length: 1 - 255
type
string
Maximum string length: 100
user_name
string
Maximum string length: 100
icon_emoji
string
Maximum string length: 10

Response

Template updated successfully

id
string
required
name
string | null
required
type
string | null
required
userName
string | null
required
iconEmoji
string | null
required
updatedAt
string
required
message
string
required