> This page is optimized for agents. Use the linked Markdown pages and llms.txt indexes for related API content.

# Update EasySecure user photo.

> The gdprConsent property of the ESUser needs to be set to true before calling this endpoint. The user needs to be presented with a GDPR approval form first before uploading any photo to EasySecure.The request body needs to be a multipart request. The photo should be added as a part with the name file. Only photos with extensions JPG and PNG can be uploaded to EasySecure.

- Product: Easysecure
- Section: Integration - EasySecure
- Snapshot: Current
- Method: `POST`
- Path: `/api/easysecure/users/{id}/photo`

## Path parameters

### `id`

Type: `number`  
Required: yes  

## Request body

Required: no  
Content types: `multipart/form-data`  

### `file`

Type: `string`  
Format: `binary`  
Required: no  

## Execute with TypeScript

Package: `@recranet/sdk`  

A TypeScript example is not available yet.

## Execute with curl

A curl example is not available yet.

## Responses

### Response `200`

Category: success  

Successful response

#### `application/json`

##### Example

```json
null
```

##### Schema

###### unknown

Type: `unknown`  

### Response `400`

Category: client-error  

Bad request

#### `application/json`

##### Example

```json
{
  "statusCode": 400,
  "description": "Bad request",
  "errors": [
    "Bad request"
  ]
}
```

##### Schema

###### object

Type: `object`  

## Related representations

- [Human documentation](/easysecure/users/methods/photo/)
- [TypeScript Markdown](/easysecure/users/methods/photo.md?lang=typescript)
- [curl Markdown](/easysecure/users/methods/photo.md?lang=curl)
- [site llms.txt](/llms.txt)
- [product llms.txt](/easysecure/llms.txt)
- [snapshot llms.txt](/easysecure/llms.txt)
