Save task as template
POST
/task-templatesCreates an independent snapshot of the saved task without its project, status, or execution history.
Contract
Parameter | Value |
|---|---|
| Section | task-templates |
| Authentication | CookieAuth |
| Consumes | application/json |
| Produces | application/json |
Parameters
1 parameter
Name | Location | Required | Type | Description |
|---|---|---|---|---|
| request | body | yes | object | Source task, template name, and template description |
{ "description": "<string>", "name": "<string>", "sourceTaskID": 0 }
Responses
5 responses
Status | Description | Type |
|---|---|---|
201 | Response: {data: <new template id>} | object |
400 | Invalid request body or metadata | object |
401 | Unauthorized | object |
404 | Source task not found | object |
500 | Internal server error | object |
{}{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }