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 '
{
  "files": "<array>",
  "fields": "<array>",
  "name": "<string>",
  "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}"

Documentation Index

Fetch the complete documentation index at: https://docs.joyfill.io/llms.txt

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

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
array
required

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

fields
array
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