Create a user group.
Create a team group in the calling key's tenant, so that an integration which finds no
group for a team of its own systems can add one instead of stopping. The group is
assignable at once: PUT /user-groups/{userGroupId}/users/{userId} puts the first
person into it.
Only the name is yours to set. The type is always team — the group of all users of
a tenant and the personal group of a user are Galilea's own bookkeeping — and the tenant
is the one the key belongs to. What a group is allowed to see is not decided here
either: folder, agent and prompt library permissions are granted in the Galilea
application, so a group created through this API starts out with none and is an empty
label until somebody shares something with it.
Names are unique within a tenant, and a name that is already taken is answered with 400
rather than with the existing group. The usual shape is to read GET /user-groups and
create only what is missing.
Requires the right to create groups, which is the tenant manager and the administrator.
apiKeyX-API-Key<token>API key issued in the Galilea settings.
application/json- body
The user group to bring into existence. Only the name: a group's type is always team,
its tenant is the one the calling key belongs to, and its acronym and color are Galilea's
own. Who belongs to the group is not part of this either — members are added one at a
time with PUT /user-groups/{userGroupId}/users/{userId} once the group has an id.
name*stringDisplay name of the group, unique within the tenant. This is what a person sees when a folder or an agent is shared, so it is worth spelling it the way your own systems name the team.
length <= 100The user group was created.
application/json- response
A user group of the tenant, as returned by the user group listing. Groups are the subject of every permission in Galilea: folders, agents and prompt libraries are shared with a group, never with a single person.
id*stringIdentifier of the group, and what the membership operations address it by. It does not change when the group is renamed.
uuidname*stringDisplay name of the group, unique within the tenant. Use it to match a group against a
team name from your own systems; a rename changes it, so store the id rather than
this.
type*"team"Kind of group. Always team here: those are the only groups this API assigns, and
the listing returns nothing else. The implicit group of all users of a tenant and
the personal group of a single user are maintained by Galilea and never appear.
"team"numberOfMembers?integerNumber of users in the group.
curl -X POST "https://example.com/user-groups" \ -H "Content-Type: application/json" \ -d '{ "name": "Legal" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "Legal", "type": "team", "numberOfMembers": 12}