# Updates the attributes for an authenticated user in the Zephr user store.

Updates the attributes for an authenticated user in the Zephr user store. The behaviour for the POST and PATCH methods on this endpoint is identical. The provided attributes are saved for the user. Any new attributes are added. Any existing attributes with the same keys are updated. Any existing attributes with different keys remain unchanged. The request can also include an optional 'blaize-validator' property to authenticate a previously partially registered user.

Endpoint: PATCH /blaize/profile
Version: 2026-10-01
Security: CookieBlaizeSession, JwtQuery, JwtHeaderXBlaizeJwt, JwtHeaderXZephrJwt, JwtBearer, JwtCookie

## Security:

  - `CookieBlaizeSession` (unknown)
    apiKey in cookie blaize_session

  - `JwtQuery` (unknown)
    apiKey in query jwt

  - `JwtHeaderXBlaizeJwt` (unknown)
    apiKey in header x-blaize-jwt

  - `JwtHeaderXZephrJwt` (unknown)
    apiKey in header x-zephr-jwt

  - `JwtBearer` (unknown)
    http bearer JWT

  - `JwtCookie` (unknown)
    apiKey in cookie blaize_jwt

## Header parameters:

  - `cookie` (string)
    The session cookie.

## Request fields (application/json):

  - `blaize-validator` (string)
    An optional password that can be used to validate an outstanding partial registration.

## Response 200:

  - `200` (unknown)
    OK. The message 'User profile updated', to confirm that the user attributes were successfully saved.

## Response 200 headers:

  - `Set-Cookie` (string)
    If a 'blaize-validator' was supplied and successfully used to authenticate the request then the response will include blaize session cookies.

## Response 400:

  - `400` (unknown)
    Bad Request. The request body must be a single layer JSON object. All provided attributes must also pass any applicable attribute validation. All provided required attributes must be non-null. All provided attributes must be publicly writable.

## Response 401:

  - `401` (unknown)
    Unauthorized. This endpoint will only return successfully for existing authenticated users.

