Skip to content

Create Policy

POST
/v1/product/{product_id}/policy

Create a new policy, requires policies:config:edit permission

Authorizations

Parameters

Path Parameters

product_id
required

Product ID

string format: uuid

Product ID

Request Body required

object
name
required

Policy name

string
>= 1 characters
permissions
required

List of permissions applied to the policy

Array<string>
description
required

Policy description

string

Responses

200

Successful Response

object
policy_id
required
string format: uuid
name
required
string
permissions
required
Array<string>
description
required
string
default_policy
required
boolean

400

Bad Request

404

Not Found

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string