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 | ID or URL- |
queryQuery | String | Filter results by name, |
user_Query | Array of integers | Filter results by the given user IDs |
skip_Query | Array of integers | Filter skipped users out of the results |
show_Query | Boolean | If true, |
pageQuery | Integer | Page number of results to retrieve Default: 1Example: 1 |
per_Query | Integer | Number of items to list per page Default: 20Example: 20 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | Array of APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Add a member to a group
POST /api/v4/groups/{id}/members
Adds a direct member to a specified group. If administrator approval for role promotions is turned on, requests that promote existing users into a billable role require administrator approval. Administrator approval for role promotions can be turned on only when the enable_member_promotion_management application setting is enabled. When a request for a single user is queued, the response has a message object that maps the username to Request queued for administrator approval.. When requests for multiple users are queued, the response has a queued_users object with the same mapping and a status of success.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
access_Required | Integer | A valid access level.10 (Guest),15 (Planner),20 (Reporter),25 (Security Manager),30 (Developer),40 (Maintainer),50 (Owner).5 (Minimal access) is also valid when id is a top- |
expires_ | String (date- | Date string in the format YEAR- |
invite_ | String | Source of the invitation that starts the member creation process.https:Default: members- |
user_ | Integer or string | User ID of the new member,username is not provided.username.user_,username must be provided |
username | String | Username of the new member,user_ is not provided.user_.user_,username must be provided |
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 | ID or URL- |
queryQuery | String | Filter results by name, |
user_Query | Array of integers | Filter results by the given user IDs |
show_Query | Boolean | If true, |
pageQuery | Integer | Page number of results to retrieve Default: 1Example: 1 |
per_Query | Integer | Number of items to list per page Default: 20Example: 20 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | Array of 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. Members of an invited private group are returned if the requester is a member of the shared group or project, even if the requester is not a member of the invited private group.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
user_Path, | Integer | 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 | ID or URL- |
user_Path, | Integer | 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. If administrator approval for role promotions is turned on, requests that promote existing users into a billable role require administrator approval. Administrator approval for role promotions can be turned on only when the enable_member_promotion_management application setting is enabled. When the request is queued, the response has a message object that maps the username to Request queued for administrator approval..
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
user_Path, | Integer | User ID of the member |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
access_Required | Integer | A valid access level.10 (Guest),15 (Planner),20 (Reporter),25 (Security Manager),30 (Developer),40 (Maintainer),50 (Owner).5 (Minimal access) is also valid when id is a top- |
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 | ID or URL- |
user_Path, | Integer | 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 | ID or URL- |
queryQuery | String | Filter results by name, |
user_Query | Array of integers | Filter results by the given user IDs |
skip_Query | Array of integers | Filter skipped users out of the results |
show_Query | Boolean | If true, |
pageQuery | Integer | Page number of results to retrieve Default: 1Example: 1 |
per_Query | Integer | Number of items to list per page Default: 20Example: 20 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | Array of APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Add a member to a project
POST /api/v4/projects/{id}/members
Adds a direct member to a specified project. If administrator approval for role promotions is turned on, requests that promote existing users into a billable role require administrator approval. Administrator approval for role promotions can be turned on only when the enable_member_promotion_management application setting is enabled. When a request for a single user is queued, the response has a message object that maps the username to Request queued for administrator approval.. When requests for multiple users are queued, the response has a queued_users object with the same mapping and a status of success.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
access_Required | Integer | A valid access level.10 (Guest),15 (Planner),20 (Reporter),25 (Security Manager),30 (Developer),40 (Maintainer),50 (Owner) |
expires_ | String (date- | Date string in the format YEAR- |
invite_ | String | Source of the invitation that starts the member creation process.https:Default: members- |
user_ | Integer or string | User ID of the new member,username is not provided.username.user_,username must be provided |
username | String | Username of the new member,user_ is not provided.user_.user_,username must be provided |
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 | ID or URL- |
queryQuery | String | Filter results by name, |
user_Query | Array of integers | Filter results by the given user IDs |
show_Query | Boolean | If true, |
pageQuery | Integer | Page number of results to retrieve Default: 1Example: 1 |
per_Query | Integer | Number of items to list per page Default: 20Example: 20 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | Array of 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. Members of an invited private group are returned if the requester is a member of the shared group or project, even if the requester is not a member of the invited private group.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
user_Path, | Integer | 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 | ID or URL- |
user_Path, | Integer | 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. If administrator approval for role promotions is turned on, requests that promote existing users into a billable role require administrator approval. Administrator approval for role promotions can be turned on only when the enable_member_promotion_management application setting is enabled. When the request is queued, the response has a message object that maps the username to Request queued for administrator approval..
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
user_Path, | Integer | User ID of the member |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
access_Required | Integer | A valid access level.10 (Guest),15 (Planner),20 (Reporter),25 (Security Manager),30 (Developer),40 (Maintainer),50 (Owner) |
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 | ID or URL- |
user_Path, | Integer | 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 | URL of the user’s avatar Example: https: |
created_ | String | — |
created_ | APIEntities | — |
custom_ | Array of APIEntities | — |
expires_ | String | — |
id | Integer (int64) | ID of the user Example: 1 |
locked | Boolean | If true, |
name | String | Name of the user.**** if the current user cannot read the bot’s project or groupExample: Administrator |
public_ | String | Public email address of the user Example: john@example. |
state | String | State of the user account.active,blocked,ldap_,blocked_,banned,deactivatedExample: active |
two_ | Boolean | If true, |
username | String | Username of the user Example: admin |
web_ | String | URL of the user’s profile Example: https: |
APIEntitiesUserBasic
| Property | Type | Description |
|---|---|---|
avatar_ | String | Example:/ |
avatar_ | String | URL of the user’s avatar Example: https: |
custom_ | Array of APIEntities | — |
id | Integer (int64) | ID of the user Example: 1 |
locked | Boolean | If true, |
name | String | Name of the user.**** if the current user cannot read the bot’s project or groupExample: Administrator |
public_ | String | Public email address of the user Example: john@example. |
state | String | State of the user account.active,blocked,ldap_,blocked_,banned,deactivatedExample: active |
username | String | Username of the user Example: admin |
web_ | String | URL of the user’s profile Example: https: |