Update an existing template

Update an existing template with new configuration.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
length between 4 and 20

Template identifier.

Body Params

Template input object for create/update operations with simplified fields.

Foundation schema for all named resources in the system. Provides common name and description fields that all resources inherit. Used as the base for all resource payload schemas.

string
required
length between 1 and 255

A unique name for JFrog resources. Must be 1-255 alphanumeric characters, underscores, hyphens, and spaces.

string
length ≤ 2048

A human-readable description of the resource. Optional field with a maximum length of 2048 characters. Can contain any characters.

string
required
length between 1 and 100

Resource version in the JFrog platform. Must be 1-100 alphanumeric characters, underscores, hyphens, periods, and colons. Examples: "1.0.0", "v2.1.3", "1.0.0-beta.1"

string
enum
required

Type/category of the rule.

Allowed:
scanners
array of objects
length between 0 and 10
Defaults to

List of scanner types that this template supports. Defaults to empty array if not provided.

scanners
string
required
length between 1 and 65536

Rego policy language code for evaluation (Open Policy Agent policy language). Must be valid Rego syntax that defines evaluation logic. The policy should define an 'allow' rule that returns a boolean value.

Rego supports all standard programming language characters including:

  • Alphanumeric characters (a-z, A-Z, 0-9)
  • Special characters (!@#$%^&*()_+-=[]{}|;:'",.<>?/~`)
  • Whitespace characters (spaces, tabs, newlines)
  • Unicode characters for identifiers and string literals

Syntax validation should be performed by an OPA parser. This field only enforces length constraints (1-65536 characters).

For Rego syntax reference, see: https://www.openpolicyagent.org/docs/latest/policy-language/

parameters
array of objects
required
length ≤ 20

List of configurable parameters for the template

parameters*
string
enum
required

The type of data source that can be used when creating a template. Only 'noop' and 'evidence' are allowed for template creation.

Allowed:
Responses

Language
Credentials
URL
LoadingLoading…
Response
Choose an example:
application/json