Add a user to the team
POST /api/2.0/project/{projectid:[0-9]+}/team
Request
Adds a user with the ID specified in the request to the selected project team.
Authorization
An API key is a token that you provide when making API calls. Include the token in a header parameter called Authorization
.
Example: Authorization: 864FE52C-1C1C-469F-9308-51DAFEFE7436
.
Headers
- Accept
enum of string
Can be one of:
application/json
.- Content-Type
enum of string
Can be one of:
application/json
.
Body
- projectid
integer
Project ID
- userId
string
User ID
Examples
POST /api/2.0/project/%7Bprojectid:[0-9]+%7D/team HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: example.com
curl --request POST \
--url 'https://example.com/api/2.0/project/%7Bprojectid:[0-9]+%7D/team' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Responses
200
List of team members
- CanReadFiles
boolean
- CanReadMilestones
boolean
- CanReadMessages
boolean
- CanReadTasks
boolean
- CanReadContacts
boolean
- IsAdministrator
boolean
- IsRemovedFromTeam
boolean
- FirstName
string
- LastName
string
- UserName
string
- Email
string
- Birthday
string
- Sex
string
- Status
enum of integer
int32 [1 - Active, 2 - Terminated, 4 - LeaveOfAbsence, 5 - Default, 7 - All]
Can be one of:
Active
,Terminated
,LeaveOfAbsence
,Default
,All
.- ActivationStatus
enum of integer
int32 [0 - NotActivated, 1 - Activated, 2 - Pending, 4 - AutoGenerated]
Can be one of:
NotActivated
,Activated
,Pending
,AutoGenerated
.- Terminated
string
- Department
string
- WorkFrom
string
- Groups
array of object
- Name
string
- Id
string
uuid - Manager
string
- Location
string
- Notes
string
- Lead
string
uuid - AvatarMedium
string
- Avatar
string
- IsAdmin
boolean
- IsLDAP
boolean
- ListAdminModules
array of string
- IsOwner
boolean
- IsVisitor
boolean
- CultureName
string
- IsSSO
boolean
- QuotaLimit
integer
int64 - UsedSpace
integer
int64 - DocsSpace
integer
int64 - MailSpace
integer
int64 - TalkSpace
integer
int64 - Id
string
uuid - DisplayName
string
- Title
string
- AvatarSmall
string
- ProfileUrl
string
401
Unauthorized