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

  • Bad Request

  • Unauthorized

  • Forbidden

  • Not Found

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