# \PlayersApi
All URIs are relative to *https://graph.azisaba.net*
[**accept_player_friend_request**](PlayersApi.md#accept_player_friend_request) | **PUT** /players/{playerId}/friend-requests/{senderId}/accept | Accept player friend request
[**add_player_friend**](PlayersApi.md#add_player_friend) | **PUT** /players/{playerId}/friends/{friendId} | Add player friend
[**add_player_friend_request**](PlayersApi.md#add_player_friend_request) | **PUT** /players/{playerId}/friend-requests/{senderId} | Add player friend request
[**get_player_by_id**](PlayersApi.md#get_player_by_id) | **GET** /players/{playerId} | Get player
[**list_player_friend_requests**](PlayersApi.md#list_player_friend_requests) | **GET** /players/{playerId}/friend-requests | List player friend requests
[**list_player_friends**](PlayersApi.md#list_player_friends) | **GET** /players/{playerId}/friends | List player friends
[**list_players**](PlayersApi.md#list_players) | **GET** /players | List players
[**reject_player_friend_request**](PlayersApi.md#reject_player_friend_request) | **PUT** /players/{playerId}/friend-requests/{senderId}/reject | Reject player friend request
[**remove_player_friend**](PlayersApi.md#remove_player_friend) | **DELETE** /players/{playerId}/friends/{friendId} | Remove player friend
[**remove_player_friend_request**](PlayersApi.md#remove_player_friend_request) | **DELETE** /players/{playerId}/friend-requests/{senderId} | Remove player friend request
[**update_player_by_id**](PlayersApi.md#update_player_by_id) | **PATCH** /players/{playerId} | Update player
## accept_player_friend_request
> accept_player_friend_request(player_id, sender_id)
Accept player friend request
Accepts the specified sender's friend request and adds the sender to the player's friends.
### Parameters
**player_id** | **uuid::Uuid** | The unique identifier of the player. | [required] |
**sender_id** | **uuid::Uuid** | The unique identifier of the player sending the friend request. | [required] |
### Return type
(empty response body)
### Authorization
[apiKeyAuth](../README.md#apiKeyAuth)
### 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)
## add_player_friend
> models::Player add_player_friend(player_id, friend_id)
Add player friend
Adds the specified friend to the player's friends.
### Parameters
**player_id** | **uuid::Uuid** | The unique identifier of the player. | [required] |
**friend_id** | **uuid::Uuid** | The unique identifier of the friend player. | [required] |
### Return type
[**models::Player**](Player.md)
### Authorization
[apiKeyAuth](../README.md#apiKeyAuth)
### 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)
## add_player_friend_request
> add_player_friend_request(player_id, sender_id)
Add player friend request
Adds a friend request from the specified sender to the player's friend requests.
### Parameters
**player_id** | **uuid::Uuid** | The unique identifier of the player. | [required] |
**sender_id** | **uuid::Uuid** | The unique identifier of the player sending the friend request. | [required] |
### Return type
(empty response body)
### Authorization
[apiKeyAuth](../README.md#apiKeyAuth)
### 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)
## get_player_by_id
> models::Player get_player_by_id(player_id)
Get player
Returns the player with the specified ID. The `discordId` field is `null` unless the API key has the `players:read-details` scope.
### Parameters
**player_id** | **uuid::Uuid** | The unique identifier of the player. | [required] |
### Return type
[**models::Player**](Player.md)
### Authorization
[apiKeyAuth](../README.md#apiKeyAuth)
### 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)
## list_player_friend_requests
> models::ListPlayers200Response list_player_friend_requests(player_id, limit, cursor, sender_id)
List player friend requests
Returns a list of friend requests received by the specified player.
### Parameters
**player_id** | **uuid::Uuid** | The unique identifier of the player. | [required] |
**limit** | Option<**u8**> | The maximum number of friend requests to return. | |[default to 20]
**cursor** | Option<**String**> | The cursor returned by the previous request. | |
**sender_id** | Option<**uuid::Uuid**> | The unique identifier of the sender used to filter friend requests. | |
### Return type
[**models::ListPlayers200Response**](listPlayers_200_response.md)
### Authorization
[apiKeyAuth](../README.md#apiKeyAuth)
### 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)
## list_player_friends
> models::ListPlayers200Response list_player_friends(player_id, limit, cursor, friend_id)
List player friends
Returns a list of friends of the specified player.
### Parameters
**player_id** | **uuid::Uuid** | The unique identifier of the player. | [required] |
**limit** | Option<**u8**> | The maximum number of friends to return. | |[default to 20]
**cursor** | Option<**String**> | The cursor returned by the previous request. | |
**friend_id** | Option<**uuid::Uuid**> | The unique identifier of the friend used to filter friendships. | |
### Return type
[**models::ListPlayers200Response**](listPlayers_200_response.md)
### Authorization
[apiKeyAuth](../README.md#apiKeyAuth)
### 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)
## list_players
> models::ListPlayers200Response list_players(limit, cursor, username, discord_id, status)
List players
Returns a list of players. The `discordId` field is `null` unless the API key has the `players:read-details` scope.
### Parameters
**limit** | Option<**u8**> | The maximum number of players to return. | |[default to 20]
**cursor** | Option<**String**> | The cursor returned by the previous request. | |
**username** | Option<**String**> | The username used to filter players. | |
**discord_id** | Option<**String**> | The Discord user ID used to filter players. Requires the `players:read-details` scope. | |
**status** | Option<**String**> | The online status used to filter players. | |
### Return type
[**models::ListPlayers200Response**](listPlayers_200_response.md)
### Authorization
[apiKeyAuth](../README.md#apiKeyAuth)
### 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)
## reject_player_friend_request
> reject_player_friend_request(player_id, sender_id)
Reject player friend request
Rejects the specified sender's friend request and removes it from the player's friend requests.
### Parameters
**player_id** | **uuid::Uuid** | The unique identifier of the player. | [required] |
**sender_id** | **uuid::Uuid** | The unique identifier of the player sending the friend request. | [required] |
### Return type
(empty response body)
### Authorization
[apiKeyAuth](../README.md#apiKeyAuth)
### 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)
## remove_player_friend
> remove_player_friend(player_id, friend_id)
Remove player friend
Removes the specified friend from the player's friends.
### Parameters
**player_id** | **uuid::Uuid** | The unique identifier of the player. | [required] |
**friend_id** | **uuid::Uuid** | The unique identifier of the friend player. | [required] |
### Return type
(empty response body)
### Authorization
[apiKeyAuth](../README.md#apiKeyAuth)
### 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)
## remove_player_friend_request
> remove_player_friend_request(player_id, sender_id)
Remove player friend request
Removes the specified sender's friend request from the player's friend requests.
### Parameters
**player_id** | **uuid::Uuid** | The unique identifier of the player. | [required] |
**sender_id** | **uuid::Uuid** | The unique identifier of the player sending the friend request. | [required] |
### Return type
(empty response body)
### Authorization
[apiKeyAuth](../README.md#apiKeyAuth)
### 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)
## update_player_by_id
> models::Player update_player_by_id(player_id, update_player_by_id_request)
Update player
Updates the player with the specified ID.
### Parameters
**player_id** | **uuid::Uuid** | The unique identifier of the player. | [required] |
**update_player_by_id_request** | [**UpdatePlayerByIdRequest**](UpdatePlayerByIdRequest.md) | | [required] |
### Return type
[**models::Player**](Player.md)
### Authorization
[apiKeyAuth](../README.md#apiKeyAuth)
### 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)