Create a new policy

Create a new policy in the system. The policy must include a unique name, description, and the policy rules to be enforced.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Policy input object for create/update.

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.

boolean
required

if true policy is active, otherwise it is inactive.

string
enum
required

Controls the behavior of unified policy, allowing it to run in a non-enforcing state.

Allowed:
action
required

Attributes defines the action a policy is applicable.

scope
required

Attributes defines when a policy is applicable.

rule_ids
array of objects
required
length between 1 and 1

A list of rule ids that the policy enforces. Note: Currently limit to 1 rule per policy.

rule_ids*
Responses

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