# Add a user photo

Uploads the profile picture and/or signature of a user (agent/collaborator).
Use `multipart/form-data`. At least one of `profile_picture` or
`signature_picture` must be provided. Images only, max 20MB each.

Endpoint: POST /users/{userId}/photo
Version: 1.6.0
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer opaque

## Path parameters:

  - `userId` (integer, required)
    Unique identifier of the user.

## Request fields (multipart/form-data):

  - `profile_picture` (string)
    Profile picture (image, max 20MB).

  - `signature_picture` (string)
    Signature picture (image, max 20MB).

## Response 204:

  - `204` (unknown)
    Photo(s) added successfully

## Response 403:

  - `403` (unknown)
    Access denied. The error `code` is always `FORBIDDEN`; the `message` gives the cause:
- `You do not have permission to perform this action.`
 — the access does not

hold the API pack / right required by the endpoint.
- `Insufficient scope for this request.`
 — the resource targeted by the request

(user, customer, product, agency, transaction, ...) is outside the scope of

the authenticated access.
- `Access denied for this editor.`
 /
`Your IP address has been blocked.`
 —

editor or IP restriction.

## Response 403 fields (application/json):

  - `error` (object)

  - `error.code` (string, required)

  - `error.message` (string, required)

## Response 422:

  - `422` (unknown)
    Validation failed

## Response 422 fields (application/json):

  - `error` (object)

  - `error.code` (string)
    Enum: "VALIDATION_ERROR"

  - `error.message` (string)

  - `error.details` (array)

  - `error.details.field` (string)

  - `error.details.message` (string)

## Response 403 examples:

  - `Missing API pack / right` (unknown)

  - `Resource outside the scope of the access` (unknown)

