Update user custom data

PATCH /api/users/{userId}/custom-data

Update custom data for the given user ID. This method performs a partial update of the custom data object.

Path parameters

  • userId string Required

    The unique identifier of the user.

application/json

Body Required

  • customData object Required

    Partial custom data object to update for the given user ID.

Responses

  • 200 application/json

    Updated custom data in JSON for the given user ID.

    arbitrary

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    Not Found

PATCH /api/users/{userId}/custom-data
curl \
 -X PATCH https://[tenant_id].logto.app/api/users/{userId}/custom-data \
 -H "Content-Type: application/json" \
 -d '{"customData":{}}'
Request examples
{
  "customData": {}
}
Response examples (200)
{}