Class: Members

Members


new Members()

Methods


create(projectOrGroupId, member [, group])

Adds a member to a group or project.

Parameters:
Name Type Argument Default Description
projectOrGroupId integer | string

The ID or URL-encoded path of the project or group owned by the authenticated user.

member object

member information.

group boolean <optional>
false

When value is true, the first parameter is groupId, false is projectId.


group(groupId)

List all members of a group

Parameters:
Name Type Description
groupId number | string

The ID or URL-encoded path of the group owned by the authenticated user

Returns:
Type
Promise

project(projectId)

List all members of a project

Parameters:
Name Type Description
projectId number | string

The ID or URL-encoded path of the project owned by the authenticated user

Returns:
Type
Promise

remove(projectOrGroupId, userId [, group])

Removes a user from a group or project.

Parameters:
Name Type Argument Default Description
projectOrGroupId integer | string

The ID or URL-encoded path of the project or group owned by the authenticated user.

userId integer

The user ID of the member

group boolean <optional>
false

When value is true, the first parameter is groupId, false is projectId.