PUT
/{orgId}/{itemId}/templates/{templateType}/{templateId}Update a template. The adminBasic or adminAdvanced privilege is required.
Request:
| Parameter | Description | Data Type | 
|---|---|---|
| templateId | Required. The ID of the template to be updated. | String | 
| templateType | Required. The type of the template to be updated. | String | 
Body:
| Parameter | Description | Data Type | 
|---|---|---|
| templateName | Required. The new name to give the template. | String | 
| templateDetails | Required. The new information to store in the template. | String | 
Query parameters
| Name | Type | Required | 
|---|---|---|
| token | string¦null | 
Body parameters
Supported content types: application/json
Type: Template
The template to be updated
| Name | Type | Required | 
|---|---|---|
| template | string¦null | |
| template | string | |
| template | string | 
Path parameters
| Name | Type | Required | 
|---|---|---|
| template | string | |
| template | string | |
| org | string | |
| item | string | 
Response status
| Status | Meaning | Description | Schema | 
|---|---|---|---|
| 200 | OK | success | Success | 
| 404 | Not Found | Invalid Template | WorkflowExceptionDTO | 
| 500 | Internal Server Error | error | WorkflowJsonExceptionDTO | 
Examples
Request
# You can also use wget
curl -X PUT /{orgId}/{itemId}/templates/{templateType}/{templateId} \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <YOUR_TOKEN>' \
  --data '{"templateId":"string","templateName":"string","templateDetails":"string"}'Response
{
  "success": true
}