Body Required
Group to create.
Responses
-
• 200 object
Successfully created group in Atlan. Note that this does not necessarily mean that any users were successfully associated with the group. To see those results, look at the
users
map in the response and review the status provided for each user therein. -
• 400 object
Error when creating the group. For example, if the provided group already exists.
POST /api/service/groups
curl \
-X POST https://tenant.atlan.com/api/service/groups \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"group":{"name":"human_resources","attributes":{"alias":["Human Resources"],"description":["Users in the human resources team."],"isDefault":["false"],"channels":[{}]}},"users":["53954c95-47f8-49b3-9812-23eb40fb07cc"]}'
Request example
{
"group": {
"name": "human_resources",
"attributes": {
"alias": [
"Human Resources"
],
"description": [
"Users in the human resources team."
],
"isDefault": [
"false"
],
"channels": [
{}
]
}
},
"users": [
"53954c95-47f8-49b3-9812-23eb40fb07cc"
]
}
Response example (200)
{
"group": "9e24070f-7ddb-4420-b015-bb6be3551407",
"users": {
"53954c95-47f8-49b3-9812-23eb40fb07cc": {
"status": 200,
"statusMessage": "success"
}
}
}
Response example (400)
{
"code": 3500,
"error": "keycloak error",
"info": null,
"message": "409 Conflict: Top level group named 'human_resources' already exists.",
"requestId": "xtZnmycJKQYAUSFw1GPxiAlbJ9gdBela"
}