Skip to main content
POST
/
v1
/
environments
/
{environment}
/
policies
cURL
curl --request POST \
  --url https://api.example.com/v1/environments/{environment}/policies \
  --header 'Content-Type: application/json' \
  --data '{}'
{}

Path Parameters

environment
string
required

The environment id.

Query Parameters

type
enum<string>

The type of policy to create.

Available options:
POLICY_TYPE_UNSPECIFIED,
ROLLOUT_POLICY,
MASKING_RULE,
MASKING_EXCEPTION,
TAG,
DATA_SOURCE_QUERY,
DATA_QUERY

Body

application/json

The body is of type object.

Response

OK

The response is of type object.