Skip to content

PUT /user/{user_key}/image

Update User Image

PUT
/user/{user_key}/image

Upload or replace a user's profile image.

Reads the existing User document to derive a filename
({name}{surname}.jpg in lowercase), then writes the image to the
configured file storage path via FileHandler.user_image. Replaces any
previously stored image for the same user.

Emits: (direct transaction — no event class)

Required scope: org:user:write

Authorizations

OAuth2PasswordBearer
password Flow
Token URL"/api/auth"
Scopes:
  • "admin"User can access and edit users and system settings
  • "library"User can access and edit products
  • "production"User can access and edit production plans
  • "operator"User can access the operator panel and make production declarations

Parameters

Path Parameters

user_key*
Type
string
Required

Request Body

multipart/form-data
object

Responses

Successful Response

application/json
JSON
{
  
"status": 200,
  
"message": "string",
  
"detail": "string"
}

Samples

Powered by VitePress OpenAPI