POST
/
environments
/
{environmentId}
/
allowlists
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/environments/{environmentId}/allowlists \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "An example name",
  "scope": "An example name",
  "outcome": "scope"
}'
{
  "id": "95b11417-f18f-457f-8804-68e361f9164f",
  "name": "<string>",
  "enabledAt": "2023-11-07T05:31:56Z",
  "projectEnvironmentId": "95b11417-f18f-457f-8804-68e361f9164f",
  "scope": "<string>",
  "outcome": "scope"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36

Body

application/json
Fields necessary to create a new allowlist
name
string
scope
string
outcome
enum<string>
Available options:
scope,
siteAccess

Response

201
application/json
Created
id
string
required
Required string length: 36
name
string
required
projectEnvironmentId
string
required
Required string length: 36
enabledAt
string | null
scope
string | null
outcome
enum<string>
Available options:
scope,
siteAccess