Get All Workspace Groups
GET/api/workspaces/:workspace_id/groups/
Returns current user's groups or all groups if the user is admin.
Request
Path Parameters
Query Parameters
Number of results to return per page.
The initial index from which to return the results.
Possible values: [name, name:asc, name:desc]
Sort by name, allowing for :asc and :desc suffixes.
Possible values: non-empty
Search within name and description
Responses
- 200
- 400
- 401
- 403
- application/json
- Schema
- Example (from schema)
Schema
Possible values: non-empty and <= 128 characters
Possible values: <= 512 characters
{
"id": 0,
"name": "string",
"description": "string",
"members": [
0
],
"members_only_in_this_group": [
0
],
"is_default": true
}
Validation error response.
It produces a validation error schema like below.
{
"field1": ["Validation error"],
"non_field_errors": ["Sample non field validation error"]
}
No authentication found or authentication is not correct.
Specified path is not allowed
Permission evaluation:
Has Organization AND Is Authenticated AND Is Not App AND ((Safe Permission AND Read Group Permission) OR Workspace Context Admin Permission) AND Is Not Editor App Workspace Context
Descriptions:
Workspace Context Admin Permission : Checks whether the user has admin rights to the context workspace.
Safe Permission : Permitted to perform Safe operations (read)
Is Not Editor App Workspace Context : Not available for editor type apps.
Has Organization : Request should have a valid Organization.
Is Not App : Client must not be a VIKTOR app.
Is Authenticated : Allows access only to authenticated users.
Read Group Permission : Permitted to read Group if member of Group.