v2

latestOpenAPI 3.0.12026-07-26334612609.5 KB
Origins

Adds an allowed origin for this project environment

post/environments/{environmentId}/origins

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"
  }
}