Account Environments

Manage account environments

Get account environments for the account

get

Return the list of the account environments for the account

Authorizations
Path parameters
account_idstringRequired

The ID of the account

Query parameters
_pageintegerOptional

Index of the page

Example: 0
_max_per_pageintegerOptional

Number of items per page

Example: 10
Responses
200

Success

application/json
Responseall of
get
GET /v1/accounts/{account_id}/account_environments HTTP/1.1
Host: api.flagship.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "current_item_count": 1,
  "current_page": 0,
  "total_count": 1,
  "items_per_page": 10,
  "last_page": 1,
  "items": [
    {
      "id": "text",
      "environment": "text",
      "isMain": "text",
      "panic": "text",
      "singleAssignment": "text"
    }
  ]
}

Get one environment

get

Return one environment by its id

Authorizations
Path parameters
account_idstringRequired

The ID of the account

Responses
200

Success

application/json
get
GET /v1/accounts/{account_id}/account_environments/{environment_id} HTTP/1.1
Host: api.flagship.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "id": "text",
  "environment": "text",
  "isMain": "text",
  "panic": "text",
  "singleAssignment": "text"
}

Panic the account environment

patch

Update the panic mode of the account environment

Authorizations
Path parameters
account_idstringRequired

The ID of the account

account_environment_idstringRequired

The ID of the environment

Body
panicstring · enumRequired

Status of the panic mode

Possible values:
Responses
200

Success

No content

patch
PATCH /v1/accounts/{account_id}/account_environments/{account_environment_id} HTTP/1.1
Host: api.flagship.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 14

{
  "panic": "on"
}

No content

Was this helpful?