Skip to content

PATCH /user/

Update User

PATCH
/user/{user_key}

Partially update a user document.

Accepts a flat JSON object. Only keys that exist in the User model
schema are applied; any unrecognised field causes a 422 rejection. The
update is performed as a direct collection update (no transaction).

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

application/json
JSON
{
  
"additionalProperties": "string"
}

Responses

Successful Response

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

Samples

Powered by VitePress OpenAPI

Released under the Apache 2.0 License.