Update Template
Templates
Update Template
Update an existing template
Update Template
Overview
Update the name, description, or workflow definition of an existing template.Content Type
This endpoint requiresmultipart/form-data content type.
Path Parameters
string
required
The unique identifier (UUID) of the template to update.
Request Parameters
string
A new descriptive name for your template (1-100 characters).
string
A new description of what this template does (1-500 characters).
file
A JSON file containing the updated ComfyUI workflow definition.
Response
string
required
Unique identifier (UUID) for the template.
string
required
UUID of the user who owns this template.
string
required
The template’s updated name.
string
required
The template’s updated description.
object
required
The updated ComfyUI workflow definition as a JSON object.
string
required
ISO 8601 timestamp when the template was created.
string
required
ISO 8601 timestamp when the template was last updated.
Example Response
cURL Example
Since the API playground doesn’t support file uploads, use this cURL command to test:{id}with the template UUIDYOUR_API_TOKENwith your actual API token/path/to/updated-workflow.jsonwith the path to your updated workflow JSON file- Only include the fields you want to update (all are optional)
-F flag automatically handles multipart/form-data with proper boundaries.
Error Responses
error
Bad request - validation error in the request.Common causes:
- Name or description too long
- Invalid JSON in body file
error
Unauthorized - invalid or missing authentication token.
error
Not Found - template with the specified ID does not exist or does not belong to your account.
Notes
- All fields in the request body are optional - only include fields you want to update
- Omitted fields will retain their current values
- Updating a template does not affect workflows that were already created using it
- Use cURL, Postman, or application code for testing - the API playground doesn’t support file uploads