# SelfImagesApi

All URIs are relative to *https://admin-api.connected.dev*

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**deleteUserImage**](#deleteuserimage) | **DELETE** /self/image | Delete the current user\&#39;s profile image|
|[**updateUserImage**](#updateuserimage) | **PUT** /self/image | Update the current user\&#39;s profile image|

# **deleteUserImage**
> UpdateSelf200Response deleteUserImage()

Removes the authenticated user\'s profile picture, deleting the stored image from Cloudflare if one exists, and returns the updated user profile.

### Example

```typescript
import {
    SelfImagesApi,
    Configuration
} from '@connectedxm/admin-sdk';

const configuration = new Configuration();
const apiInstance = new SelfImagesApi(configuration);

const { status, data } = await apiInstance.deleteUserImage();
```

### Parameters
This endpoint does not have any parameters.


### Return type

**UpdateSelf200Response**

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Successful response |  -  |

[[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)

# **updateUserImage**
> UpdateSelf200Response updateUserImage(userImageUpdateInputs)

Uploads and sets a new profile picture for the authenticated user from a base64 image data URI in jpeg, png, heic, or heif format, and returns the updated user profile.

### Example

```typescript
import {
    SelfImagesApi,
    Configuration,
    UserImageUpdateInputs
} from '@connectedxm/admin-sdk';

const configuration = new Configuration();
const apiInstance = new SelfImagesApi(configuration);

let userImageUpdateInputs: UserImageUpdateInputs; //

const { status, data } = await apiInstance.updateUserImage(
    userImageUpdateInputs
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **userImageUpdateInputs** | **UserImageUpdateInputs**|  | |


### Return type

**UpdateSelf200Response**

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Successful response |  -  |

[[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)

