Users
Manage users
Return the list of the user of the account environment
Authorizations
Path parameters
account_idstringRequired
The ID of the account
account_environment_idstringRequired
The ID of the environment
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/{account_environment_id}/users 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": [
{
"data": [
{
"email": "text",
"role": "ACCOUNT_OWNER"
}
]
}
]
}
Update the users of the account environment. It will create automatically the users which does not exist.
Authorizations
Path parameters
account_idstringRequired
The ID of the account
account_environment_idstringRequired
The ID of the environment
Bodyobject[]
emailstringRequired
Email of the user
rolestring · enumRequiredPossible values:
Role of the user
Responses
204
Updated
No content
404
Not Found
put
PUT /v1/accounts/{account_id}/account_environments/{account_environment_id}/users HTTP/1.1
Host: api.flagship.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 41
[
{
"email": "text",
"role": "ACCOUNT_OWNER"
}
]
No content
Delete the users of the account environment. You can delete multuple users in the same time.
Authorizations
Path parameters
account_idstringRequired
The ID of the account
account_environment_idstringRequired
The ID of the environment
Query parameters
email[]string[]Optional
Email of the user to delete
Responses
204
Deleted
No content
404
Not Found
delete
DELETE /v1/accounts/{account_id}/account_environments/{account_environment_id}/users HTTP/1.1
Host: api.flagship.io
Authorization: YOUR_API_KEY
Accept: */*
No content
Was this helpful?