# \TeamApi
All URIs are relative to *http://localhost*
[**delete_delete_team**](TeamApi.md#delete_delete_team) | **DELETE** /api/teams/{id} | Delete a team
[**delete_delete_team_activity**](TeamApi.md#delete_delete_team_activity) | **DELETE** /api/teams/{id}/activities/{activityId} | Revokes access for an activity from a team
[**delete_delete_team_customer**](TeamApi.md#delete_delete_team_customer) | **DELETE** /api/teams/{id}/customers/{customerId} | Revokes access for a customer from a team
[**delete_delete_team_member**](TeamApi.md#delete_delete_team_member) | **DELETE** /api/teams/{id}/members/{userId} | Removes a member from the team
[**delete_delete_team_project**](TeamApi.md#delete_delete_team_project) | **DELETE** /api/teams/{id}/projects/{projectId} | Revokes access for a project from a team
[**get_get_team**](TeamApi.md#get_get_team) | **GET** /api/teams/{id} | Returns one team
[**get_get_teams**](TeamApi.md#get_get_teams) | **GET** /api/teams | Fetch all existing teams (which are visible to the user)
[**patch_patch_team**](TeamApi.md#patch_patch_team) | **PATCH** /api/teams/{id} | Update an existing team
[**post_post_team**](TeamApi.md#post_post_team) | **POST** /api/teams | Creates a new team
[**post_post_team_activity**](TeamApi.md#post_post_team_activity) | **POST** /api/teams/{id}/activities/{activityId} | Grant the team access to an activity
[**post_post_team_customer**](TeamApi.md#post_post_team_customer) | **POST** /api/teams/{id}/customers/{customerId} | Grant the team access to a customer
[**post_post_team_member**](TeamApi.md#post_post_team_member) | **POST** /api/teams/{id}/members/{userId} | Add a new member to a team
[**post_post_team_project**](TeamApi.md#post_post_team_project) | **POST** /api/teams/{id}/projects/{projectId} | Grant the team access to a project
## delete_delete_team
> delete_delete_team(id)
Delete a team
### Parameters
**id** | **String** | Team ID to delete | [required] |
### Return type
(empty response body)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## delete_delete_team_activity
> models::Team delete_delete_team_activity(id, activity_id)
Revokes access for an activity from a team
### Parameters
**id** | **String** | The team whose permission will be revoked | [required] |
**activity_id** | **String** | The activity to remove (Activity ID) | [required] |
### Return type
[**models::Team**](Team.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## delete_delete_team_customer
> models::Team delete_delete_team_customer(id, customer_id)
Revokes access for a customer from a team
### Parameters
**id** | **String** | The team whose permission will be revoked | [required] |
**customer_id** | **String** | The customer to remove (Customer ID) | [required] |
### Return type
[**models::Team**](Team.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## delete_delete_team_member
> models::Team delete_delete_team_member(id, user_id)
Removes a member from the team
### Parameters
**id** | **String** | The team from which the member will be removed | [required] |
**user_id** | **String** | The team member to remove (User ID) | [required] |
### Return type
[**models::Team**](Team.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## delete_delete_team_project
> models::Team delete_delete_team_project(id, project_id)
Revokes access for a project from a team
### Parameters
**id** | **String** | The team whose permission will be revoked | [required] |
**project_id** | **String** | The project to remove (Project ID) | [required] |
### Return type
[**models::Team**](Team.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## get_get_team
> models::Team get_get_team(id)
Returns one team
### Parameters
**id** | **String** | | [required] |
### Return type
[**models::Team**](Team.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## get_get_teams
> Vec<models::TeamCollection> get_get_teams()
Fetch all existing teams (which are visible to the user)
### Parameters
This endpoint does not need any parameter.
### Return type
[**Vec<models::TeamCollection>**](TeamCollection.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## patch_patch_team
> models::Team patch_patch_team(id, team_edit_form)
Update an existing team
Update an existing team, you can pass all or just a subset of all attributes (passing members will replace all existing ones)
### Parameters
**id** | **String** | Team ID to update | [required] |
**team_edit_form** | [**TeamEditForm**](TeamEditForm.md) | | [required] |
### Return type
[**models::Team**](Team.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## post_post_team
> models::Team post_post_team(team_edit_form)
Creates a new team
Creates a new team and returns it afterwards
### Parameters
**team_edit_form** | [**TeamEditForm**](TeamEditForm.md) | | [required] |
### Return type
[**models::Team**](Team.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## post_post_team_activity
> models::Team post_post_team_activity(id, activity_id)
Grant the team access to an activity
### Parameters
**id** | **String** | The team that is granted access | [required] |
**activity_id** | **String** | The activity to grant acecess to (Activity ID) | [required] |
### Return type
[**models::Team**](Team.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## post_post_team_customer
> models::Team post_post_team_customer(id, customer_id)
Grant the team access to a customer
### Parameters
**id** | **String** | The team that is granted access | [required] |
**customer_id** | **String** | The customer to grant acecess to (Customer ID) | [required] |
### Return type
[**models::Team**](Team.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## post_post_team_member
> models::Team post_post_team_member(id, user_id)
Add a new member to a team
### Parameters
**id** | **String** | The team which will receive the new member | [required] |
**user_id** | **String** | The team member to add (User ID) | [required] |
### Return type
[**models::Team**](Team.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## post_post_team_project
> models::Team post_post_team_project(id, project_id)
Grant the team access to a project
### Parameters
**id** | **String** | The team that is granted access | [required] |
**project_id** | **String** | The project to grant acecess to (Project ID) | [required] |
### Return type
[**models::Team**](Team.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)