---
title: "Upload a user's profile photo"
method: POST
path: "/api/users/{user_id}/photo"
tags: ["Users - Admin"]
---

# Upload a user's profile photo

`POST /api/users/{user_id}/photo`

Uploads a profile photo for a user. The image is re-encoded to WebP
server-side and stored in the public websites bucket under
{staging_domain}/assets/users/photos/ so it's servable via CloudFront
for the company's public website. Requires the company to have at
least one Website record — otherwise upload is refused.
Updates Utilizadores.website_photo_url with the resulting CDN URL.

## Path parameters

- `user_id` integer, required

## Headers

- `x-api-token` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/multigest/apis/multigest-protected-api.md) · [All operations](https://skmtc.dev/multigest/apis/multigest-protected-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/multigest/multigest-protected-api/revisions/8492136eefc5/schema)
