Update User Data
Set OR update custom user JSON data.
Prerequisites
- Before calling this API, ensure you have created and activated a Tenant whose
appIdmatches theApp-Idheader of this request. The correctappIdvalue can be retrieved from theTenantResourcereturned by the Dashboard API. - You must also have created and activated an
UPDATE_USER_DATAtype Route whoseappRouteIdmatches theApp-Route-Idheader, and whose HTTPmethodandpathmatch those of this request. The correctappRouteIdvalue can be retrieved from theRouteResourcereturned by the Dashboard API.
Base URL
https://your-gateway-host
Required Headers
App-Id: app-xxxxxxxx
App-Key: key-xxxxxxxx
App-Route-Id: route-xxxxxxxx
Authorization: Bearer YOUR_ACCESS_TOKEN
Content-Type: application/json
Method and Path
Use the HTTP method and path specified in the activeConfig field of the Route.
Request Body
The data field must be either a non-empty custom JSON object or a non-empty custom JSON array.
The JSON
datafield may contain personal data. The entire JSON is encrypted using the Tenant’sencrypt_keybefore being stored in the database.
Examples:
{
"data" : {
"age" : 33,
"firstname" : "John",
"lastname" : "Bro"
}
}{
"data" : [
{"personal": "personal data"},
{"preferences": "user preferences"},
{"billing": "billing details"}
]
}Response 200 OK
If the operation is successful, an HTTP 200 OK response is returned.
Request Flow

Updated about 1 month ago
Did this page help you?