Create a new policy and attach it to one or more deployments.
Authorizations
Headers
Body
application/json
namestringrequiredflagged_contentstringrequiredallowed_contentstring | nullapplies_tonull | enum<string>Available options:
input,output,anyExample:
"input"content_typenull | enum<string>Available options:
session,artifact,anyExample:
"session"modenull | enum<string>Available options:
prod,shadowExample:
"prod"deployment_idsstring[] | nullseverity_level_idstring<uuid> | nullcountry_codesstring[] | nullrollout_percentageinteger<int32> | null
Response
Success
idstringrequirednamestringrequiredflagged_contentstringrequiredapplies_toenum<string>requiredAvailable options:
input,output,anyExample:
"input"content_typeenum<string>requiredAvailable options:
session,artifact,anyExample:
"session"modeenum<string>requiredAvailable options:
prod,shadowExample:
"prod"deployment_idsstring[]requiredcountry_codesstring[]requiredrollout_percentageinteger<int32>requiredRequired range:
x >= 0revision_idstringrequiredcreated_atstring<date-time>requiredallowed_contentstring | nullseverity_level_idstring<uuid> | nulldeleted_atstring<date-time> | null
Bad Request