Teams
Update a team
POST
/api/teams/{teamId}Updates the specified team's name or access code.
Headers
| Name | Type | Description |
|---|---|---|
| Authorizationrequired | string | Authentication credentials, e.g. Bearer <token>. |
Path parameters
| Name | Type | Description |
|---|---|---|
| teamIdrequired | string | ID of the associated team. |
Request body
| Name | Type | Description |
|---|---|---|
| accessCode | string | Code used to join the team. |
| name | string | Display name of the resource. |
Example request
Responses
200The operation completed successfully.
| Name | Type | Description |
|---|---|---|
| accessCoderequired | string | Code used to join the team. |
| createdAtrequired | string | Date and time the record was created. |
| deletedAtrequired | string | Date and time the record was deleted, if applicable. |
| idrequired | string | Unique identifier of the resource. |
| logoUrlrequired | string | URL of the logo image. |
| namerequired | string | Display name of the resource. |
| twoFactorRequiredrequired | boolean | Whether two-factor authentication is required. |
| updatedAtrequired | string | Date and time the record was last updated. |
200 example
400Bad request.
| Name | Type | Description |
|---|---|---|
| errorrequired | object | Error details returned when the operation fails. |
400 example
401Unauthorized.
| Name | Type | Description |
|---|---|---|
| errorrequired | object | Error details returned when the operation fails. |
401 example
Code samples
cURL