Create a Team.
Create a Team.
Request Body required
- Array [
- Array [
- ]
- ]
- Array [
- ]
team object
Represents a Fixie Team.
The display name for this team.
The description for this team.
The URL of the avatar image for this team.
members object[]
The members of this Team.
user object
The user that is a member of this Team.
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.
The user's API token. This is only populated when a user accesses their own account information.
subscriptions object[]
The subscriptions for this user.
role object
The user's role on the Team.
True if the user is an admin for the team.
subscriptions object[]
The subscriptions for this team.
- 200
- default
OK
Schema
- Array [
- Array [
- ]
- ]
- Array [
- ]
team object
Represents a Fixie Team.
The unique ID for this team.
This field should not be populated in client requests.
The display name for this team.
The description for this team.
The URL of the avatar image for this team.
members object[]
The members of this 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.
When this team was created.
This field should not be populated in client requests.
When this team was last modified.
This field should not be populated in client requests.
subscriptions object[]
The subscriptions for this team.
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.
{
"team": {
"teamId": "string",
"displayName": "string",
"description": "string",
"avatarUrl": "string",
"members": [
{
"teamId": "string",
"user": {
"userId": "string",
"email": "string",
"fullName": "string",
"avatarUrl": "string",
"created": "2024-03-07T22:56:08.452Z",
"modified": "2024-03-07T22:56:08.452Z",
"apiToken": "string",
"lastLogin": "2024-03-07T22:56:08.452Z",
"subscriptions": [
{
"id": "string",
"type": "SUBSCRIPTION_TYPE_UNSPECIFIED",
"state": "SUBSCRIPTION_STATE_UNSPECIFIED",
"description": "string",
"created": "2024-03-07T22:56:08.452Z",
"modified": "2024-03-07T22:56:08.452Z",
"startTime": "2024-03-07T22:56:08.452Z",
"endTime": "2024-03-07T22:56:08.452Z"
}
]
},
"role": {
"isAdmin": true
},
"pending": true,
"created": "2024-03-07T22:56:08.452Z",
"modified": "2024-03-07T22:56:08.452Z"
}
],
"created": "2024-03-07T22:56:08.452Z",
"modified": "2024-03-07T22:56:08.452Z",
"subscriptions": [
{
"id": "string",
"type": "SUBSCRIPTION_TYPE_UNSPECIFIED",
"state": "SUBSCRIPTION_STATE_UNSPECIFIED",
"description": "string",
"created": "2024-03-07T22:56:08.452Z",
"modified": "2024-03-07T22:56:08.452Z",
"startTime": "2024-03-07T22:56:08.452Z",
"endTime": "2024-03-07T22:56:08.452Z"
}
]
}
}
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"
}
]
}