Create an approval policy
1 min
POST
http://localhost:3002//projects/{project_id}/environments/{environment_id}/policies
project_idinteger
environment_idinteger
acceptstringGenerated from available response content types
bodyobject
201Policy created successfully
401Not Authenticated
422Validation Error
curl --request POST \
--url http://localhost:3002//projects/{project_id}/environments/{environment_id}/policies \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"name": "",
"is_default": "",
"default_preferences": {},
"approvers": [
{
"type": ""
}
],
"notification_recipients": [
{
"type": ""
}
],
"entities": [
{
"operation": "",
"entity_key": "",
"entity_id": ""
}
]
}'