team_member_add ()
Function prototype | team_member_add (session, team, member, type, [roles]) |
---|---|
API Version | 2.7.25 and higher |
SOAP, REST (Since API Version 2.7.32) |
Description
Adds an existing USER as member of a TEAM with the specified roles
This action can only be done if the caller has the necessary privileges, which are:
Required permissions:
The active user is TEAM_EDITOR or TEAM_MANAGER of team
The active user has role TEAM_EDITOR or TEAM_MANAGER into a TEAM that is member of team with role TEAM_MANAGER
Otherwise an INSUFFICIENT_PRIVILEGES error will be returned.
Input parameters: |
|
Output parameters: |
|
Request example
team_member_add (“LC53060c6f729de8.42629546”, 5335, 342, "USER", "24")
Response
The response format is XML when the function has been invoked via the SOAP API, and JSON when it has been invoked via the REST API
Return Error codes
ERROR CODE |
|
---|---|
INVALID_TOKEN | The session token provided is not valid |
INSUFFICIENT_PRIVILEGES | The active user does not have the appropriate permissions to execute the action |
TEAM_NOT_FOUND | The TEAM member reference specified was not found |
USER_NOT_FOUND | The member reference specified was not found (if it is a USER member) |
WRONG_PARAMS | The value specified in type is not a valid value |