Account Environments
Manage account environments
Return the list of the account environments for the account
Authorizations
Path parameters
account_idstringRequired
The ID of the account
Query parameters
_pageintegerOptionalExample:
Index of the page
0
_max_per_pageintegerOptionalExample:
Number of items per page
10
Responses
200
Success
application/json
Responseall of
404
Not Found
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"
}
]
}
Return one environment by its id
Authorizations
Path parameters
account_idstringRequired
The ID of the account
Responses
200
Success
application/json
404
Not Found
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"
}
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 · enumRequiredPossible values:
Status of the panic mode
Responses
200
Success
No content
404
Not Found
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?