Users - Admin

Upload a user's profile 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.

post/api/users/{user_id}/photo

Request

  • Base URL
    https://api.multigest.pt (the document declares no server; this is the origin it was published from)
  • URL
    https://api.multigest.pt/api/users/{user_id}/photo
  • Auth
    API key in header x-api-token and API key in header x-origin-verify

Path parameters

user_idinteger required

Headers

x-api-tokenstring nullable

Request body multipart/form-data

filestring binary required

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 21 revisions of this API.