Update user public data
Applies a partial update to the public data associated with the specified user. Only fields included in the request are updated. Public data fields can be removed by sending a null value for the corresponding key.
Intended for non-sensitive attributes that may be safely exposed to client applications. When surfaced via custom claims, these values may appear in tokens issued to frontend or user-facing applications. Store only data that remains safe even if accessed through browser storage, logs, or debugging tools.
API-KeyX-API-KEY<token>MonoCloud APIs require authentication with an API key. Retrieve your key from the Tenant Settings section of the MonoCloud dashboard and include it in the request header as: X-API-Key: <your_api_key>
The unique identifier of the user.
Request Body
application/json
The request payload used to update a user's public data.
TypeScript Definitions
Use the request body type in TypeScript.
Update Public Data Request: Updates public data associated with a user account.
Response Body
application/json
The user's public data was updated successfully
TypeScript Definitions
Use the response body type in TypeScript.
User Public Data: Returns public data stored for a user.
Errors
curl -X PATCH "https://your-domain.us.monocloud.com/api/users/WUgDGqaqzqkRmsgd3PFAT/public_data" \ -H "X-API-KEY: <token>" \ -H "Content-Type: application/json" \ -d '{ "public_data": { "property1": null, "property2": null } }'{ "public_data": { "property1": null, "property2": null }}