Invite a member to this Team.
Invite a member to this Team.
Path Parameters
The team to invite a user to.
Request Body required
The team to invite a user to.
The email address of the user to invite. The user must invoke the JoinTeam API to accept the invitation.
role object
Represents a role that a User can have in a Team.
True if the user is an admin for the team.
- 200
- default
OK
Schema
- Array [
- ]
membership object
Represents the membership of a User in a Team.
The team ID.
user object
The user that is a member of this Team.
The unique user ID for this user.
This field should not be populated in client requests.
The email address for this user.
The name of the user. This is only used for display purposes.
The URL of the avatar image for this user.
When this user was created.
This field should not be populated in client requests.
When this user was last modified.
This field should not be populated in client requests.
The user's API token. This is only populated when a user accesses their own account information.
When this user last logged in.
This field should not be populated in client requests.
subscriptions object[]
The subscriptions for this user.
The unique ID for this subscription.
Possible values: [SUBSCRIPTION_TYPE_UNSPECIFIED
, SUBSCRIPTION_TYPE_BUILDER
, SUBSCRIPTION_TYPE_STARTER
, SUBSCRIPTION_TYPE_PERFORMANCE
, SUBSCRIPTION_TYPE_OTHER
]
The type of subscription this represents.
Possible values: [SUBSCRIPTION_STATE_UNSPECIFIED
, SUBSCRIPTION_STATE_ACTIVE
, SUBSCRIPTION_STATE_CANCELED
, SUBSCRIPTION_STATE_EXPIRED
, SUBSCRIPTION_STATE_CANCEL_PENDING
]
The state of this subscription.
A description of this subscription.
When this subscription was created. This may not represent when the subscription was active, due to backdating.
When this subscription was last modified.
The timestamp when this subscription starts.
The timestamp when this subscription ends. If this subscription is active and has not been canceled, it will renew at this time.
role object
The user's role on the Team.
True if the user is an admin for the team.
Whether the membership is pending acceptance of an invitation by the user.
When this membership was created.
When this membership was last modified.
{
"membership": {
"teamId": "string",
"user": {
"userId": "string",
"email": "string",
"fullName": "string",
"avatarUrl": "string",
"created": "2024-03-07T22:56:08.476Z",
"modified": "2024-03-07T22:56:08.476Z",
"apiToken": "string",
"lastLogin": "2024-03-07T22:56:08.476Z",
"subscriptions": [
{
"id": "string",
"type": "SUBSCRIPTION_TYPE_UNSPECIFIED",
"state": "SUBSCRIPTION_STATE_UNSPECIFIED",
"description": "string",
"created": "2024-03-07T22:56:08.476Z",
"modified": "2024-03-07T22:56:08.476Z",
"startTime": "2024-03-07T22:56:08.476Z",
"endTime": "2024-03-07T22:56:08.476Z"
}
]
},
"role": {
"isAdmin": true
},
"pending": true,
"created": "2024-03-07T22:56:08.476Z",
"modified": "2024-03-07T22:56:08.476Z"
}
}
Default error response
Schema
- Array [
- ]
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
The type of the serialized message.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}