Use this API to manage the members of a group or a project, including inherited memberships, membership approvals, and the billable members of a group.
List all direct members of a group
GET /api/v4/groups/{id}/members
Lists all direct members of a specified group viewable by the authenticated user. Does not return inherited members from ancestor groups or invited groups.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The group ID |
queryQuery | String | A query string to search for members |
user_Query | Array of integers | Array of user ids to look up for membership |
skip_Query | Array of integers | Array of user ids to be skipped for membership |
show_Query | Boolean | Show seat information for members |
pageQuery | Integer | Current page number Default: 1Example: 1 |
per_Query | Integer | Number of items per page Default: 20Example: 20 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Add a member to a group
POST /api/v4/groups/{id}/members
Adds a member to a specified group.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The group ID |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
access_Required | Integer | A valid access level |
expires_ | String (date- | Date string in the format YEAR- |
invite_ | String | Source that triggered the member creation process Default: members- |
user_ | Integer or string | The user ID of the new member or multiple IDs separated by commas.username |
username | String | The username of the new member or multiple usernames separated by commas.user_ |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
List all members of a group
GET /api/v4/groups/{id}/members/all
Lists all members of a specified group viewable by the authenticated user. Also returns inherited members from ancestor groups or invited groups. If a user is a member of this group and one or more ancestor groups, only returns the highest access_level. Members from an invited group are returned if the invited group is public, the requester is a member of an invited group, or the requester is a member of the shared group or project.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The group ID |
queryQuery | String | A query string to search for members |
user_Query | Array of integers | Array of user ids to look up for membership |
show_Query | Boolean | Show seat information for members |
pageQuery | Integer | Current page number Default: 1Example: 1 |
per_Query | Integer | Number of items per page Default: 20Example: 20 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Retrieve a group member
GET /api/v4/groups/{id}/members/all/{user_id}
Retrieves a specified member of a group. Returns direct members and members inherited or invited through ancestor groups.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The group ID |
user_Path, | Integer | The user ID of the member |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Retrieve a direct group member
GET /api/v4/groups/{id}/members/{user_id}
Retrieves a specified member of a group. Returns only direct members and not inherited members through ancestor groups.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The group ID |
user_Path, | Integer | The user ID of the member |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Update a group member
PUT /api/v4/groups/{id}/members/{user_id}
Updates a specified member of a group.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The group ID |
user_Path, | Integer | The user ID of the new member |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
access_Required | Integer | A valid access level |
expires_ | String (date- | Date string in the format YEAR- |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Remove a member from a group
DELETE /api/v4/groups/{id}/members/{user_id}
Removes a specified user from a group. The user must be a direct member.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The group ID |
user_Path, | Integer | The user ID of the member |
skip_Query | Boolean | If true,Default: false |
unassign_Query | Boolean | If true,Default: false |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Resource deleted | — |
400 | Bad Request | — |
404 | Not Found | — |
List all direct members of a project
GET /api/v4/projects/{id}/members
Lists all direct members of a specified project viewable by the authenticated user. Does not return inherited members from ancestor groups or invited groups.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The project ID |
queryQuery | String | A query string to search for members |
user_Query | Array of integers | Array of user ids to look up for membership |
skip_Query | Array of integers | Array of user ids to be skipped for membership |
show_Query | Boolean | Show seat information for members |
pageQuery | Integer | Current page number Default: 1Example: 1 |
per_Query | Integer | Number of items per page Default: 20Example: 20 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Add a member to a project
POST /api/v4/projects/{id}/members
Adds a member to a specified project.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The project ID |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
access_Required | Integer | A valid access level |
expires_ | String (date- | Date string in the format YEAR- |
invite_ | String | Source that triggered the member creation process Default: members- |
user_ | Integer or string | The user ID of the new member or multiple IDs separated by commas.username |
username | String | The username of the new member or multiple usernames separated by commas.user_ |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
List all members of a project
GET /api/v4/projects/{id}/members/all
Lists all members of a specified project viewable by the authenticated user. Also returns inherited members from ancestor groups or invited groups. If a user is a member of this project and one or more ancestor groups, only returns the highest access_level. Members from an invited group are returned if the invited group is public, the requester is a member of an invited group, or the requester is a member of the shared group or project.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The project ID |
queryQuery | String | A query string to search for members |
user_Query | Array of integers | Array of user ids to look up for membership |
show_Query | Boolean | Show seat information for members |
pageQuery | Integer | Current page number Default: 1Example: 1 |
per_Query | Integer | Number of items per page Default: 20Example: 20 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Retrieve a project member
GET /api/v4/projects/{id}/members/all/{user_id}
Retrieves a specified member of a project. Returns direct members and members inherited or invited through ancestor groups.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The project ID |
user_Path, | Integer | The user ID of the member |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Retrieve a direct project member
GET /api/v4/projects/{id}/members/{user_id}
Retrieves a specified member of a project. Returns only direct members and not inherited members through ancestor groups.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The project ID |
user_Path, | Integer | The user ID of the member |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Update a project member
PUT /api/v4/projects/{id}/members/{user_id}
Updates a specified member of a project.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The project ID |
user_Path, | Integer | The user ID of the new member |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
access_Required | Integer | A valid access level |
expires_ | String (date- | Date string in the format YEAR- |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Remove a member from a project
DELETE /api/v4/projects/{id}/members/{user_id}
Removes a specified user from a project. The user must be a direct member.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The project ID |
user_Path, | Integer | The user ID of the member |
skip_Query | Boolean | If true,Default: false |
unassign_Query | Boolean | If true,Default: false |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Resource deleted | — |
400 | Bad Request | — |
404 | Not Found | — |
Schemas
Objects returned by the operations above and objects nested in their request bodies.
APIEntitiesCustomAttribute
| Property | Type | Description |
|---|---|---|
key | String | Example:foo |
value | String | Example:bar |
APIEntitiesMember
| Property | Type | Description |
|---|---|---|
access_ | String | — |
avatar_ | String | Example:/ |
avatar_ | String | Example:https: |
created_ | String | — |
created_ | APIEntities | — |
custom_ | Array of APIEntities | — |
expires_ | String | — |
id | Integer (int64) | Example:1 |
locked | Boolean | — |
name | String | Example:Administrator |
public_ | String | Example:john@example. |
state | String | Example:active |
two_ | Boolean | — |
username | String | Example:admin |
web_ | String | Example:https: |
APIEntitiesUserBasic
| Property | Type | Description |
|---|---|---|
avatar_ | String | Example:/ |
avatar_ | String | Example:https: |
custom_ | Array of APIEntities | — |
id | Integer (int64) | Example:1 |
locked | Boolean | — |
name | String | Example:Administrator |
public_ | String | Example:john@example. |
state | String | Example:active |
username | String | Example:admin |
web_ | String | Example:https: |