Skip to main content
POST
/
templates
/
{identifier}
Update a template
curl --request POST \
  --url https://api-joy.joyfill.io/v1/templates/{identifier} \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "files": [
    "<any>"
  ],
  "fields": [
    "<any>"
  ],
  "group": "<string>",
  "stage": "published"
}'
"{\n  \"type\": \"String\",\n  \"identifer\": \"String\",\n  \"name\": \"String\",\n  \"group\": \"String\",\n  \"stage\": \"String\",\n  \"files\": [\"JoyDocFile\",\"etc.\"],\n   \n}"

Headers

Authorization
string

Supports both API Key and User Access Token authorization. See https://joyfill.mintlify.app/api/authentication

Path Parameters

identifier
string
required

Body

application/json
files
any[]
required

Array of JoyDoc file objects. See the JoyDoc data structure under the guides section.

fields
any[]
required

Array of JoyDoc field objects. See the JoyDoc data structure under the guides section to learn more.

name
string
group
string

The group identifier of the group that you would like to add the document to

stage
enum<string>
default:published
Available options:
draft,
published

Response

200 - application/json

200

The response is of type any.