跳转到主要内容
PATCH
/
template
/
{templateId}
cURL
curl --request PATCH \
  --url http://127.0.0.1:3000/api/template/{templateId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "categoryId": "<string>",
  "cover": {
    "token": "xxxxxxxxxxx",
    "size": 1024,
    "url": "/bucket/xxxxx",
    "path": "/table/xxxxxx",
    "mimetype": "video/mp4",
    "name": "<string>",
    "id": "<string>",
    "width": 100,
    "height": 100
  },
  "isPublished": true,
  "isSystem": true,
  "baseId": "<string>",
  "markdownDescription": "<string>"
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

templateId
string
required

Body

application/json
name
string
description
string
categoryId
string
cover
object
isPublished
boolean
isSystem
boolean
baseId
string
markdownDescription
string

Response

201

Successfully update template.

Last modified on December 10, 2025