# MailApi
All URIs are relative to *https://esi.evetech.net*
|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**deleteCharactersCharacterIdMailLabelsLabelId**](#deletecharacterscharacteridmaillabelslabelid) | **DELETE** /characters/{character_id}/mail/labels/{label_id} | Delete a mail label|
|[**deleteCharactersCharacterIdMailMailId**](#deletecharacterscharacteridmailmailid) | **DELETE** /characters/{character_id}/mail/{mail_id} | Delete a mail|
|[**getCharactersCharacterIdMail**](#getcharacterscharacteridmail) | **GET** /characters/{character_id}/mail | Return mail headers|
|[**getCharactersCharacterIdMailLabels**](#getcharacterscharacteridmaillabels) | **GET** /characters/{character_id}/mail/labels | Get mail labels and unread counts|
|[**getCharactersCharacterIdMailLists**](#getcharacterscharacteridmaillists) | **GET** /characters/{character_id}/mail/lists | Return mailing list subscriptions|
|[**getCharactersCharacterIdMailMailId**](#getcharacterscharacteridmailmailid) | **GET** /characters/{character_id}/mail/{mail_id} | Return a mail|
|[**postCharactersCharacterIdMail**](#postcharacterscharacteridmail) | **POST** /characters/{character_id}/mail | Send a new mail|
|[**postCharactersCharacterIdMailLabels**](#postcharacterscharacteridmaillabels) | **POST** /characters/{character_id}/mail/labels | Create a mail label|
|[**putCharactersCharacterIdMailMailId**](#putcharacterscharacteridmailmailid) | **PUT** /characters/{character_id}/mail/{mail_id} | Update metadata about a mail|
# **deleteCharactersCharacterIdMailLabelsLabelId**
> deleteCharactersCharacterIdMailLabelsLabelId()
Delete a mail label
### Example
```typescript
import {
MailApi,
Configuration
} from 'eve-esi-client-ts';
const configuration = new Configuration();
const apiInstance = new MailApi(configuration);
let characterId: number; //The ID of the character (default to undefined)
let labelId: number; // (default to undefined)
let xCompatibilityDate: '2026-07-17'; //The compatibility date for the request. (default to undefined)
let acceptLanguage: 'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'; //The language to use for the response. (optional) (default to 'en')
let ifNoneMatch: string; //The ETag of the previous request. A 304 will be returned if this matches the current ETag. (optional) (default to undefined)
let xTenant: string; //The tenant ID for the request. (optional) (default to 'tranquility')
let ifModifiedSince: string; //The date the resource was last modified. A 304 will be returned if the resource has not been modified since this date. (optional) (default to undefined)
const { status, data } = await apiInstance.deleteCharactersCharacterIdMailLabelsLabelId(
characterId,
labelId,
xCompatibilityDate,
acceptLanguage,
ifNoneMatch,
xTenant,
ifModifiedSince
);
```
### Parameters
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **characterId** | [**number**] | The ID of the character | defaults to undefined|
| **labelId** | [**number**] | | defaults to undefined|
| **xCompatibilityDate** | [**'2026-07-17'**]**Array<'2026-07-17'>** | The compatibility date for the request. | defaults to undefined|
| **acceptLanguage** | [**'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'**]**Array<'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'>** | The language to use for the response. | (optional) defaults to 'en'|
| **ifNoneMatch** | [**string**] | The ETag of the previous request. A 304 will be returned if this matches the current ETag. | (optional) defaults to undefined|
| **xTenant** | [**string**] | The tenant ID for the request. | (optional) defaults to 'tranquility'|
| **ifModifiedSince** | [**string**] | The date the resource was last modified. A 304 will be returned if the resource has not been modified since this date. | (optional) defaults to undefined|
### Return type
void (empty response body)
### Authorization
[OAuth2](../README.md#OAuth2)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | Label deleted | * Cache-Control -
* ETag -
* Last-Modified -
|
|**0** | Error | - |
[[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)
# **deleteCharactersCharacterIdMailMailId**
> deleteCharactersCharacterIdMailMailId()
Delete a mail
### Example
```typescript
import {
MailApi,
Configuration
} from 'eve-esi-client-ts';
const configuration = new Configuration();
const apiInstance = new MailApi(configuration);
let characterId: number; //The ID of the character (default to undefined)
let mailId: number; // (default to undefined)
let xCompatibilityDate: '2026-07-17'; //The compatibility date for the request. (default to undefined)
let acceptLanguage: 'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'; //The language to use for the response. (optional) (default to 'en')
let ifNoneMatch: string; //The ETag of the previous request. A 304 will be returned if this matches the current ETag. (optional) (default to undefined)
let xTenant: string; //The tenant ID for the request. (optional) (default to 'tranquility')
let ifModifiedSince: string; //The date the resource was last modified. A 304 will be returned if the resource has not been modified since this date. (optional) (default to undefined)
const { status, data } = await apiInstance.deleteCharactersCharacterIdMailMailId(
characterId,
mailId,
xCompatibilityDate,
acceptLanguage,
ifNoneMatch,
xTenant,
ifModifiedSince
);
```
### Parameters
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **characterId** | [**number**] | The ID of the character | defaults to undefined|
| **mailId** | [**number**] | | defaults to undefined|
| **xCompatibilityDate** | [**'2026-07-17'**]**Array<'2026-07-17'>** | The compatibility date for the request. | defaults to undefined|
| **acceptLanguage** | [**'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'**]**Array<'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'>** | The language to use for the response. | (optional) defaults to 'en'|
| **ifNoneMatch** | [**string**] | The ETag of the previous request. A 304 will be returned if this matches the current ETag. | (optional) defaults to undefined|
| **xTenant** | [**string**] | The tenant ID for the request. | (optional) defaults to 'tranquility'|
| **ifModifiedSince** | [**string**] | The date the resource was last modified. A 304 will be returned if the resource has not been modified since this date. | (optional) defaults to undefined|
### Return type
void (empty response body)
### Authorization
[OAuth2](../README.md#OAuth2)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | Mail deleted | * Cache-Control -
* ETag -
* Last-Modified -
|
|**0** | Error | - |
[[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)
# **getCharactersCharacterIdMail**
> Array getCharactersCharacterIdMail()
Return the 50 most recent mail headers belonging to the character that match the query criteria. Queries can be filtered by label, and last_mail_id can be used to paginate backwards
### Example
```typescript
import {
MailApi,
Configuration
} from 'eve-esi-client-ts';
const configuration = new Configuration();
const apiInstance = new MailApi(configuration);
let characterId: number; //The ID of the character (default to undefined)
let xCompatibilityDate: '2026-07-17'; //The compatibility date for the request. (default to undefined)
let labels: Set; // (optional) (default to undefined)
let lastMailId: number; // (optional) (default to undefined)
let acceptLanguage: 'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'; //The language to use for the response. (optional) (default to 'en')
let ifNoneMatch: string; //The ETag of the previous request. A 304 will be returned if this matches the current ETag. (optional) (default to undefined)
let xTenant: string; //The tenant ID for the request. (optional) (default to 'tranquility')
let ifModifiedSince: string; //The date the resource was last modified. A 304 will be returned if the resource has not been modified since this date. (optional) (default to undefined)
const { status, data } = await apiInstance.getCharactersCharacterIdMail(
characterId,
xCompatibilityDate,
labels,
lastMailId,
acceptLanguage,
ifNoneMatch,
xTenant,
ifModifiedSince
);
```
### Parameters
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **characterId** | [**number**] | The ID of the character | defaults to undefined|
| **xCompatibilityDate** | [**'2026-07-17'**]**Array<'2026-07-17'>** | The compatibility date for the request. | defaults to undefined|
| **labels** | **Set<number>** | | (optional) defaults to undefined|
| **lastMailId** | [**number**] | | (optional) defaults to undefined|
| **acceptLanguage** | [**'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'**]**Array<'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'>** | The language to use for the response. | (optional) defaults to 'en'|
| **ifNoneMatch** | [**string**] | The ETag of the previous request. A 304 will be returned if this matches the current ETag. | (optional) defaults to undefined|
| **xTenant** | [**string**] | The tenant ID for the request. | (optional) defaults to 'tranquility'|
| **ifModifiedSince** | [**string**] | The date the resource was last modified. A 304 will be returned if the resource has not been modified since this date. | (optional) defaults to undefined|
### Return type
**Array**
### Authorization
[OAuth2](../README.md#OAuth2)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | OK | * Cache-Control -
* ETag -
* Last-Modified -
|
|**0** | Error | - |
[[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)
# **getCharactersCharacterIdMailLabels**
> CharactersCharacterIdMailLabelsGet getCharactersCharacterIdMailLabels()
Return a list of the users mail labels, unread counts for each label and a total unread count.
### Example
```typescript
import {
MailApi,
Configuration
} from 'eve-esi-client-ts';
const configuration = new Configuration();
const apiInstance = new MailApi(configuration);
let characterId: number; //The ID of the character (default to undefined)
let xCompatibilityDate: '2026-07-17'; //The compatibility date for the request. (default to undefined)
let acceptLanguage: 'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'; //The language to use for the response. (optional) (default to 'en')
let ifNoneMatch: string; //The ETag of the previous request. A 304 will be returned if this matches the current ETag. (optional) (default to undefined)
let xTenant: string; //The tenant ID for the request. (optional) (default to 'tranquility')
let ifModifiedSince: string; //The date the resource was last modified. A 304 will be returned if the resource has not been modified since this date. (optional) (default to undefined)
const { status, data } = await apiInstance.getCharactersCharacterIdMailLabels(
characterId,
xCompatibilityDate,
acceptLanguage,
ifNoneMatch,
xTenant,
ifModifiedSince
);
```
### Parameters
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **characterId** | [**number**] | The ID of the character | defaults to undefined|
| **xCompatibilityDate** | [**'2026-07-17'**]**Array<'2026-07-17'>** | The compatibility date for the request. | defaults to undefined|
| **acceptLanguage** | [**'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'**]**Array<'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'>** | The language to use for the response. | (optional) defaults to 'en'|
| **ifNoneMatch** | [**string**] | The ETag of the previous request. A 304 will be returned if this matches the current ETag. | (optional) defaults to undefined|
| **xTenant** | [**string**] | The tenant ID for the request. | (optional) defaults to 'tranquility'|
| **ifModifiedSince** | [**string**] | The date the resource was last modified. A 304 will be returned if the resource has not been modified since this date. | (optional) defaults to undefined|
### Return type
**CharactersCharacterIdMailLabelsGet**
### Authorization
[OAuth2](../README.md#OAuth2)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | OK | * Cache-Control -
* ETag -
* Last-Modified -
|
|**0** | Error | - |
[[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)
# **getCharactersCharacterIdMailLists**
> Array getCharactersCharacterIdMailLists()
Return all mailing lists that the character is subscribed to
### Example
```typescript
import {
MailApi,
Configuration
} from 'eve-esi-client-ts';
const configuration = new Configuration();
const apiInstance = new MailApi(configuration);
let characterId: number; //The ID of the character (default to undefined)
let xCompatibilityDate: '2026-07-17'; //The compatibility date for the request. (default to undefined)
let acceptLanguage: 'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'; //The language to use for the response. (optional) (default to 'en')
let ifNoneMatch: string; //The ETag of the previous request. A 304 will be returned if this matches the current ETag. (optional) (default to undefined)
let xTenant: string; //The tenant ID for the request. (optional) (default to 'tranquility')
let ifModifiedSince: string; //The date the resource was last modified. A 304 will be returned if the resource has not been modified since this date. (optional) (default to undefined)
const { status, data } = await apiInstance.getCharactersCharacterIdMailLists(
characterId,
xCompatibilityDate,
acceptLanguage,
ifNoneMatch,
xTenant,
ifModifiedSince
);
```
### Parameters
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **characterId** | [**number**] | The ID of the character | defaults to undefined|
| **xCompatibilityDate** | [**'2026-07-17'**]**Array<'2026-07-17'>** | The compatibility date for the request. | defaults to undefined|
| **acceptLanguage** | [**'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'**]**Array<'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'>** | The language to use for the response. | (optional) defaults to 'en'|
| **ifNoneMatch** | [**string**] | The ETag of the previous request. A 304 will be returned if this matches the current ETag. | (optional) defaults to undefined|
| **xTenant** | [**string**] | The tenant ID for the request. | (optional) defaults to 'tranquility'|
| **ifModifiedSince** | [**string**] | The date the resource was last modified. A 304 will be returned if the resource has not been modified since this date. | (optional) defaults to undefined|
### Return type
**Array**
### Authorization
[OAuth2](../README.md#OAuth2)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | OK | * Cache-Control -
* ETag -
* Last-Modified -
|
|**0** | Error | - |
[[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)
# **getCharactersCharacterIdMailMailId**
> CharactersCharacterIdMailMailIdGet getCharactersCharacterIdMailMailId()
Return the contents of an EVE mail
### Example
```typescript
import {
MailApi,
Configuration
} from 'eve-esi-client-ts';
const configuration = new Configuration();
const apiInstance = new MailApi(configuration);
let characterId: number; //The ID of the character (default to undefined)
let mailId: number; // (default to undefined)
let xCompatibilityDate: '2026-07-17'; //The compatibility date for the request. (default to undefined)
let acceptLanguage: 'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'; //The language to use for the response. (optional) (default to 'en')
let ifNoneMatch: string; //The ETag of the previous request. A 304 will be returned if this matches the current ETag. (optional) (default to undefined)
let xTenant: string; //The tenant ID for the request. (optional) (default to 'tranquility')
let ifModifiedSince: string; //The date the resource was last modified. A 304 will be returned if the resource has not been modified since this date. (optional) (default to undefined)
const { status, data } = await apiInstance.getCharactersCharacterIdMailMailId(
characterId,
mailId,
xCompatibilityDate,
acceptLanguage,
ifNoneMatch,
xTenant,
ifModifiedSince
);
```
### Parameters
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **characterId** | [**number**] | The ID of the character | defaults to undefined|
| **mailId** | [**number**] | | defaults to undefined|
| **xCompatibilityDate** | [**'2026-07-17'**]**Array<'2026-07-17'>** | The compatibility date for the request. | defaults to undefined|
| **acceptLanguage** | [**'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'**]**Array<'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'>** | The language to use for the response. | (optional) defaults to 'en'|
| **ifNoneMatch** | [**string**] | The ETag of the previous request. A 304 will be returned if this matches the current ETag. | (optional) defaults to undefined|
| **xTenant** | [**string**] | The tenant ID for the request. | (optional) defaults to 'tranquility'|
| **ifModifiedSince** | [**string**] | The date the resource was last modified. A 304 will be returned if the resource has not been modified since this date. | (optional) defaults to undefined|
### Return type
**CharactersCharacterIdMailMailIdGet**
### Authorization
[OAuth2](../README.md#OAuth2)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | OK | * Cache-Control -
* ETag -
* Last-Modified -
|
|**0** | Error | - |
[[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)
# **postCharactersCharacterIdMail**
> number postCharactersCharacterIdMail(postCharactersCharacterIdMailRequest)
Create and send a new mail
### Example
```typescript
import {
MailApi,
Configuration,
PostCharactersCharacterIdMailRequest
} from 'eve-esi-client-ts';
const configuration = new Configuration();
const apiInstance = new MailApi(configuration);
let characterId: number; //The ID of the character (default to undefined)
let xCompatibilityDate: '2026-07-17'; //The compatibility date for the request. (default to undefined)
let postCharactersCharacterIdMailRequest: PostCharactersCharacterIdMailRequest; //
let acceptLanguage: 'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'; //The language to use for the response. (optional) (default to 'en')
let ifNoneMatch: string; //The ETag of the previous request. A 304 will be returned if this matches the current ETag. (optional) (default to undefined)
let xTenant: string; //The tenant ID for the request. (optional) (default to 'tranquility')
let ifModifiedSince: string; //The date the resource was last modified. A 304 will be returned if the resource has not been modified since this date. (optional) (default to undefined)
const { status, data } = await apiInstance.postCharactersCharacterIdMail(
characterId,
xCompatibilityDate,
postCharactersCharacterIdMailRequest,
acceptLanguage,
ifNoneMatch,
xTenant,
ifModifiedSince
);
```
### Parameters
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **postCharactersCharacterIdMailRequest** | **PostCharactersCharacterIdMailRequest**| | |
| **characterId** | [**number**] | The ID of the character | defaults to undefined|
| **xCompatibilityDate** | [**'2026-07-17'**]**Array<'2026-07-17'>** | The compatibility date for the request. | defaults to undefined|
| **acceptLanguage** | [**'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'**]**Array<'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'>** | The language to use for the response. | (optional) defaults to 'en'|
| **ifNoneMatch** | [**string**] | The ETag of the previous request. A 304 will be returned if this matches the current ETag. | (optional) defaults to undefined|
| **xTenant** | [**string**] | The tenant ID for the request. | (optional) defaults to 'tranquility'|
| **ifModifiedSince** | [**string**] | The date the resource was last modified. A 304 will be returned if the resource has not been modified since this date. | (optional) defaults to undefined|
### Return type
**number**
### Authorization
[OAuth2](../README.md#OAuth2)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Created | * Cache-Control -
* ETag -
* Last-Modified -
|
|**0** | Error | - |
[[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)
# **postCharactersCharacterIdMailLabels**
> number postCharactersCharacterIdMailLabels(postCharactersCharacterIdMailLabelsRequest)
Create a mail label
### Example
```typescript
import {
MailApi,
Configuration,
PostCharactersCharacterIdMailLabelsRequest
} from 'eve-esi-client-ts';
const configuration = new Configuration();
const apiInstance = new MailApi(configuration);
let characterId: number; //The ID of the character (default to undefined)
let xCompatibilityDate: '2026-07-17'; //The compatibility date for the request. (default to undefined)
let postCharactersCharacterIdMailLabelsRequest: PostCharactersCharacterIdMailLabelsRequest; //
let acceptLanguage: 'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'; //The language to use for the response. (optional) (default to 'en')
let ifNoneMatch: string; //The ETag of the previous request. A 304 will be returned if this matches the current ETag. (optional) (default to undefined)
let xTenant: string; //The tenant ID for the request. (optional) (default to 'tranquility')
let ifModifiedSince: string; //The date the resource was last modified. A 304 will be returned if the resource has not been modified since this date. (optional) (default to undefined)
const { status, data } = await apiInstance.postCharactersCharacterIdMailLabels(
characterId,
xCompatibilityDate,
postCharactersCharacterIdMailLabelsRequest,
acceptLanguage,
ifNoneMatch,
xTenant,
ifModifiedSince
);
```
### Parameters
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **postCharactersCharacterIdMailLabelsRequest** | **PostCharactersCharacterIdMailLabelsRequest**| | |
| **characterId** | [**number**] | The ID of the character | defaults to undefined|
| **xCompatibilityDate** | [**'2026-07-17'**]**Array<'2026-07-17'>** | The compatibility date for the request. | defaults to undefined|
| **acceptLanguage** | [**'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'**]**Array<'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'>** | The language to use for the response. | (optional) defaults to 'en'|
| **ifNoneMatch** | [**string**] | The ETag of the previous request. A 304 will be returned if this matches the current ETag. | (optional) defaults to undefined|
| **xTenant** | [**string**] | The tenant ID for the request. | (optional) defaults to 'tranquility'|
| **ifModifiedSince** | [**string**] | The date the resource was last modified. A 304 will be returned if the resource has not been modified since this date. | (optional) defaults to undefined|
### Return type
**number**
### Authorization
[OAuth2](../README.md#OAuth2)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Created | * Cache-Control -
* ETag -
* Last-Modified -
|
|**0** | Error | - |
[[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)
# **putCharactersCharacterIdMailMailId**
> putCharactersCharacterIdMailMailId(putCharactersCharacterIdMailMailIdRequest)
Update metadata about a mail
### Example
```typescript
import {
MailApi,
Configuration,
PutCharactersCharacterIdMailMailIdRequest
} from 'eve-esi-client-ts';
const configuration = new Configuration();
const apiInstance = new MailApi(configuration);
let characterId: number; //The ID of the character (default to undefined)
let mailId: number; // (default to undefined)
let xCompatibilityDate: '2026-07-17'; //The compatibility date for the request. (default to undefined)
let putCharactersCharacterIdMailMailIdRequest: PutCharactersCharacterIdMailMailIdRequest; //
let acceptLanguage: 'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'; //The language to use for the response. (optional) (default to 'en')
let ifNoneMatch: string; //The ETag of the previous request. A 304 will be returned if this matches the current ETag. (optional) (default to undefined)
let xTenant: string; //The tenant ID for the request. (optional) (default to 'tranquility')
let ifModifiedSince: string; //The date the resource was last modified. A 304 will be returned if the resource has not been modified since this date. (optional) (default to undefined)
const { status, data } = await apiInstance.putCharactersCharacterIdMailMailId(
characterId,
mailId,
xCompatibilityDate,
putCharactersCharacterIdMailMailIdRequest,
acceptLanguage,
ifNoneMatch,
xTenant,
ifModifiedSince
);
```
### Parameters
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **putCharactersCharacterIdMailMailIdRequest** | **PutCharactersCharacterIdMailMailIdRequest**| | |
| **characterId** | [**number**] | The ID of the character | defaults to undefined|
| **mailId** | [**number**] | | defaults to undefined|
| **xCompatibilityDate** | [**'2026-07-17'**]**Array<'2026-07-17'>** | The compatibility date for the request. | defaults to undefined|
| **acceptLanguage** | [**'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'**]**Array<'en' | 'de' | 'fr' | 'ja' | 'ru' | 'zh' | 'ko' | 'es'>** | The language to use for the response. | (optional) defaults to 'en'|
| **ifNoneMatch** | [**string**] | The ETag of the previous request. A 304 will be returned if this matches the current ETag. | (optional) defaults to undefined|
| **xTenant** | [**string**] | The tenant ID for the request. | (optional) defaults to 'tranquility'|
| **ifModifiedSince** | [**string**] | The date the resource was last modified. A 304 will be returned if the resource has not been modified since this date. | (optional) defaults to undefined|
### Return type
void (empty response body)
### Authorization
[OAuth2](../README.md#OAuth2)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | Mail updated | * Cache-Control -
* ETag -
* Last-Modified -
|
|**0** | Error | - |
[[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)