POST
/
environments
/
{environmentId}
/
origins
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/environments/{environmentId}/origins \
  --header 'Content-Type: application/json' \
  --data '{
  "origin": "http://*.example.com"
}'
{
  "origin": {
    "id": "95b11417-f18f-457f-8804-68e361f9164f",
    "origin": "http://*.example.com",
    "createdAt": "2023-11-07T05:31:56Z",
    "projectEnvironmentId": "95b11417-f18f-457f-8804-68e361f9164f"
  }
}

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36

Body

application/json
Fields necessary to add an origin
origin
string
required

An RFC 6454 valid url. Must not include any paths. A single wildcard (*) can be used as the first subdomain.

Response

201
application/json
Origin was added successfully
origin
object