Add a Group
This function is an API endpoint that allows an authenticated admin to add a new group. It is tagged with "group" for OpenAPI documentation..<br> Todo allow to use different team
Parameters
- request: The request data, which includes the details of the group to be added. <br>
Returns
If successful, this function returns a Json<UsersResponse> object, which includes a success message, the total number of groups, and the list of groups. <br> If the admin is not authorized, this function returns a status::Unauthorized error. <br>
Errors
This function will return an error if the system is in maintenance mode, or if the admin is not authorized.
Example
POST /api/group {"name":"new group","password":"string","confirm-password":"string","email":"string","is_admin":false,"group_name":"string"}
Request body
Response
Changes
Changed in 3 of the 11 revisions of this API.884
- ▲
added the new required request property
allowed_incomingsnew-required-request-property
- ▲
added the new required request property
allowed_outgoingsnew-required-request-property
- ▲
added the new required request property
notenew-required-request-property
- ●
removed the request property
confirm-passwordrequest-property-removed
- ●
removed the request property
emailrequest-property-removed
- ●
removed the request property
group_namerequest-property-removed
- ●
removed the request property
is_adminrequest-property-removed
- ●
removed the request property
passwordrequest-property-removed
- ▲
- ○
api tag
groupaddedapi-tag-added
- ○
api tag
todoremovedapi-tag-removed
- ○
- ▲
added the new required request property
confirm-passwordnew-required-request-property
- ▲
added the new required request property
emailnew-required-request-property
- ▲
added the new required request property
group_namenew-required-request-property
- ▲
added the new required request property
is_adminnew-required-request-property
- ▲
added the new required request property
passwordnew-required-request-property
- ●
removed the request property
allowed_incomingsrequest-property-removed
- ●
removed the request property
allowed_outgoingsrequest-property-removed
- ●
removed the request property
noterequest-property-removed
- ○
api tag
todoaddedapi-tag-added
- ○
api tag
groupremovedapi-tag-removed
This revision also has 16 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲