POST
/
environments
/
create
curl --request POST \
  --url https://us-east.metoro.io/api/v1/environments/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "environment": {
    "name": "my-environment"
  }
}'
{
  "token": "eyJ...",
  "name": "my-environment"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
Environment to create

Request to create a new environment

Response

200
application/json
Environment created successfully

Response for creating a new environment