Download OpenAPI specification:
Get all groups of the user.
page | integer <int32> |
size | integer <int32> [ 1 .. 100 ] |
sort | string Enum: "asc" "desc" |
sortBy | string |
{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "description": "string",
- "isArchived": true,
- "createdAt": "string",
- "updatedAt": "string",
- "me": {
- "type": "membership",
- "role": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "roleName": "string",
- "accessLevel": "GROUP_OWNER"
}
}
}
], - "totalPages": 10,
- "totalItems": 100,
- "currentPage": 1,
- "pageSize": 10,
- "hasNextPage": true
}
Create a new group. Only admin level can reach this endpoint.
title required | string |
description required | string |
required | Array of objects (Groups.AddMemberRequest) |
{- "title": "string",
- "description": "string",
- "members": [
- {
- "member": "user@example.com",
- "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391"
}
]
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "description": "string",
- "isArchived": true,
- "createdAt": "string",
- "updatedAt": "string",
- "me": {
- "type": "membership",
- "role": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "roleName": "string",
- "accessLevel": "GROUP_OWNER"
}
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "description": "string",
- "isArchived": true,
- "createdAt": "string",
- "updatedAt": "string",
- "me": {
- "type": "membership",
- "role": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "roleName": "string",
- "accessLevel": "GROUP_OWNER"
}
}
}
Get all members of a group. Will reject the request from access level 'user'.
id required | string |
page | integer <int32> |
size | integer <int32> [ 1 .. 100 ] |
sort | string Enum: "asc" "desc" |
sortBy | string |
{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fullName": "string",
- "email": "user@example.com",
- "studentId": "string",
- "role": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "roleName": "string",
- "accessLevel": "GROUP_OWNER"
}
}
], - "totalPages": 10,
- "totalItems": 100,
- "currentPage": 1,
- "pageSize": 10,
- "hasNextPage": true
}
Add a member to a group. Will reject the request from access level 'user'.
id required | string |
required | Array of objects (Groups.AddMemberRequest) |
{- "members": [
- {
- "member": "user@example.com",
- "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391"
}
]
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fullName": "string",
- "email": "user@example.com",
- "studentId": "string",
- "role": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "roleName": "string",
- "accessLevel": "GROUP_OWNER"
}
}
Update a member's access level. Will reject the request from access level 'user'
id required | string |
memberId required | string |
roleId required | string <uuid> The role id of the member. |
{- "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fullName": "string",
- "email": "user@example.com",
- "studentId": "string",
- "role": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "roleName": "string",
- "accessLevel": "GROUP_OWNER"
}
}
title required | string The public key title set by the user. |
publicKey required | string The public key of the user. |
{- "title": "string",
- "publicKey": "string"
}
{- "id": "string",
- "title": "string",
- "publicKey": "string"
}
fullName required | string The real name of the user. |
linuxUsername required | string The computer account name of the user. |
{- "fullName": "string",
- "linuxUsername": "string"
}
{- "fullName": "string",
- "linuxUsername": "string"
}
provider required | string (Auth.OAuthProviders) Enum: "google" "nycu" The OAuth2 provider to use for login. |
c required | string The callback URL of the OAuth2 login. See details |
r | string The redirect URL for login callback. |
post new mapping between group wise role and group wise access level
role required | string The name of the role. |
accessLevel required | string The access level of the role. |
{- "role": "string",
- "accessLevel": "string"
}
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "roleName": "string",
- "accessLevel": "GROUP_OWNER"
}
]
update mapping between group wise role and group wise access level
id required | string <uuid> (uuid) |
role required | string The name of the role. |
accessLevel required | string The access level of the role. |
{- "role": "string",
- "accessLevel": "string"
}
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "roleName": "string",
- "accessLevel": "GROUP_OWNER"
}
]