/{orgId}/{itemId}/templates/{templateType}/{templateId}
Update a template
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 |
---|---|---|
|
|
Body parameters
Supported content types: application/json
Path parameters
Name | Type | Required |
---|---|---|
|
| |
|
| |
|
| |
|
|
Examples
Request
# You can also use wget
curl -X PUT /{orgId}/{itemId}/templates/{templateType}/{templateId} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}' \
--data '{"templateId":"string","templateName":"string","templateDetails":"string"}'
Response
Status | Meaning | Description | Schema |
---|---|---|---|
| success | ||
| Invalid Template | ||
| error |