Software Secure Workload
Activity Configure

Update a Policy Template

This endpoint updates a policy template.

PUT /openapi/v1/application_templates/{template_id}

Parameters: The request URL contains the following parameters

Name

Type

Description

template_id

string

The unique identifier for the policy template.

The JSON request body contains the following keys

Attribute

Type

Description

name

string

(optional) Used as the name of the template during import.

description

string

(optional) Template description displayed during the apply process

Response object: Returns the modified policy template object with the specified ID.

Sample python code


  new_name = <new-name>
  payload = {'name': new_name}
  template_id = '<template-id>'
  restclient.post('/application_templates/%s' % template_id,
                  json_body=json.dumps(payload))