updateTemplate

Click to copy

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

Body parameter

Use dark colors for code blocksCopy
1
2
3
4
5
{
  "templateId": "string",
  "templateName": "string",
  "templateDetails": "string"
}

Query parameters

NameTypeRequired

token

string

Path parameters

NameTypeRequired

templateId

string

templateType

string

orgId

string

itemId

string

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 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

Response

200 Response

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

200

OK

success

Success

404

Not Found

Invalid Template

WorkflowExceptionDTO

500

Internal Server Error

error

WorkflowJsonExceptionDTO

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