Create account group
POST {{baseUrl}}/account-groups?expand=user
Creates a new account group. This operation requires the Edit all account groups
permission.
Note: Any user assigned to All Account Groups
is automatically assigned to the new account group.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
expand | string | Optional parameter that specifies whether or not account group related resources should be expanded. By default, no expansion takes place if the query parameter is not passed. For example, to expand the users resource, pass the ?expand=user query. |
Request Body
{"accountGroupName"=>"My testing account group", "agents"=>["105", "719"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"aid":"1234","accountGroupName":"Account A","isCurrentAccountGroup":true,"isDefaultAccountGroup":true,"organizationName":"minim","users":[{"name":"User X","email":"userx@thousandeyes.com","uid":"235","lastLogin":"2022-07-17T22:00:54Z","dateRegistered":"2022-07-17T22:00:54Z","roles":[{"name":"Organization Admin","roleId":"35","isBuiltin":true,"hasManagementPermissions":false},{"name":"Organization Admin","roleId":"35","isBuiltin":true,"hasManagementPermissions":false}]},{"name":"User X","email":"userx@thousandeyes.com","uid":"235","lastLogin":"2022-07-17T22:00:54Z","dateRegistered":"2022-07-17T22:00:54Z","roles":[{"name":"Organization Admin","roleId":"35","isBuiltin":false,"hasManagementPermissions":true},{"name":"Organization Admin","roleId":"35","isBuiltin":false,"hasManagementPermissions":true}]}],"_links":{"self":{"href":"https://api.thousandeyes.com/v7/link/to/resource/id","templated":true,"type":"occaecat voluptate","deprecation":"Ut officia qui magna ut","name":"ut ex","profile":"volup","title":"labore dolore pariatur aliquip nisi","hreflang":"cillum velit"}}}