Skip to content

updateTemplate

PUT
Use dark colors for code blocksCopy
1
/{orgId}/{itemId}/templates/{templateType}/{templateId}
Update a template

Update a template. The adminBasic or adminAdvanced privilege is required.

Request:

ParameterDescriptionData Type
templateIdRequired. The ID of the template to be updated.String
templateTypeRequired. The type of the template to be updated.String

Body:

ParameterDescriptionData Type
templateNameRequired. The new name to give the template.String
templateDetailsRequired. The new information to store in the template.String

Query parameters

NameTypeRequired
tokenstring¦null

Body parameters

Supported content types: application/json

Type: Template

The template to be updated

NameTypeRequired
templateIdstring¦null
templateNamestring
templateDetailsstring

Path parameters

NameTypeRequired
templateIdstring
templateTypestring
orgIdstring
itemIdstring

Response status

StatusMeaningDescriptionSchema
200OK

success

Success
404Not Found

Invalid Template

WorkflowExceptionDTO
500Internal Server Error

error

WorkflowJsonExceptionDTO

Examples

Request

Use dark colors for code blocksCopy
1
2
3
4
5
# 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

Use dark colors for code blocksCopy
1
2
3
{
  "success": true
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.