Origins

Adds an allowed origin for this project environment

post/environments/{environmentId}/origins

Request

  • Base URL
    https://app.dynamicauth.com/api/v0
  • Auth
    none declared

Path parameters

environmentIdstring required
Example:95b11417-f18f-457f-8804-68e361f9164f

ID of the environment

Request body

originstring required

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

Example request

{
  "origin": "http://*.example.com"
}

Response

Origin was added successfully

Example response

{
  "origin": {
    "id": "95b11417-f18f-457f-8804-68e361f9164f",
    "origin": "http://*.example.com",
    "projectEnvironmentId": "95b11417-f18f-457f-8804-68e361f9164f"
  }
}

Changes

No recorded changes to this operation across all 5 revisions of this API.