Create template (Cloud-only)

Creates a new template from an existing agent or agent file

Path parameters

projectstringRequired
The project slug

Headers

AuthorizationstringRequired
Header authentication of the form `Bearer <token>`

Request

Body
TemplatesCreatetemplateRequest0objectRequired
Create a template from an existing agent
OR
TemplatesCreatetemplateRequest1objectRequired
Create a template from an uploaded agent file

Response

201
namestring
The exact name of the template
idstring
project_idstring
project_slugstring
latest_versionstring
The latest version of the template
template_deployment_slugstring
The full name of the template, including version and project slug
updated_atstring
When the template was last updated
descriptionstring or null

Errors