Add a team member
put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$teamIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$userIdstringRequired
The unique ID of the User
Body
rolestring · enumOptionalPossible values:
"The role of a team member. "owner": Can manage team members. "member": Is a member of the team.
Responses
204
Member has been added to the team
No content
put/orgs/{organizationId}/teams/{teamId}/members/{userId}
PUT /v1/orgs/{organizationId}/teams/{teamId}/members/{userId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"role": "owner"
}204
Member has been added to the team
No content
Last updated
Was this helpful?