# memos.InboxServiceApi All URIs are relative to */* Method | HTTP request | Description ------------- | ------------- | ------------- [**inbox_service_delete_inbox**](InboxServiceApi.md#inbox_service_delete_inbox) | **DELETE** /api/v2/{name_1} | DeleteInbox deletes an inbox. [**inbox_service_list_inboxes**](InboxServiceApi.md#inbox_service_list_inboxes) | **GET** /api/v2/inboxes | ListInboxes lists inboxes for a user. [**inbox_service_update_inbox**](InboxServiceApi.md#inbox_service_update_inbox) | **PATCH** /api/v2/{inbox.name} | UpdateInbox updates an inbox. # **inbox_service_delete_inbox** > V2DeleteInboxResponse inbox_service_delete_inbox(name_1) DeleteInbox deletes an inbox. ### Example ```python from __future__ import print_function import time import memos from memos.rest import ApiException from pprint import pprint # create an instance of the API class api_instance = memos.InboxServiceApi() name_1 = 'name_1_example' # str | The name of the inbox to delete. Format: inboxes/{uid} try: # DeleteInbox deletes an inbox. api_response = api_instance.inbox_service_delete_inbox(name_1) pprint(api_response) except ApiException as e: print("Exception when calling InboxServiceApi->inbox_service_delete_inbox: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name_1** | **str**| The name of the inbox to delete. Format: inboxes/{uid} | ### Return type [**V2DeleteInboxResponse**](V2DeleteInboxResponse.md) ### Authorization No authorization required ### 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) # **inbox_service_list_inboxes** > V2ListInboxesResponse inbox_service_list_inboxes(user=user) ListInboxes lists inboxes for a user. ### Example ```python from __future__ import print_function import time import memos from memos.rest import ApiException from pprint import pprint # create an instance of the API class api_instance = memos.InboxServiceApi() user = 'user_example' # str | Format: users/{username} (optional) try: # ListInboxes lists inboxes for a user. api_response = api_instance.inbox_service_list_inboxes(user=user) pprint(api_response) except ApiException as e: print("Exception when calling InboxServiceApi->inbox_service_list_inboxes: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **user** | **str**| Format: users/{username} | [optional] ### Return type [**V2ListInboxesResponse**](V2ListInboxesResponse.md) ### Authorization No authorization required ### 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) # **inbox_service_update_inbox** > V2UpdateInboxResponse inbox_service_update_inbox(body, inbox_name) UpdateInbox updates an inbox. ### Example ```python from __future__ import print_function import time import memos from memos.rest import ApiException from pprint import pprint # create an instance of the API class api_instance = memos.InboxServiceApi() body = memos.V2InboxNameBody() # V2InboxNameBody | inbox_name = 'inbox_name_example' # str | The name of the inbox. Format: inboxes/{uid} try: # UpdateInbox updates an inbox. api_response = api_instance.inbox_service_update_inbox(body, inbox_name) pprint(api_response) except ApiException as e: print("Exception when calling InboxServiceApi->inbox_service_update_inbox: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V2InboxNameBody**](V2InboxNameBody.md)| | **inbox_name** | **str**| The name of the inbox. Format: inboxes/{uid} | ### Return type [**V2UpdateInboxResponse**](V2UpdateInboxResponse.md) ### Authorization No authorization required ### 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)