cURL
curl --request PUT \ --url https://{host}/frontend/api/v1/user/{user-id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "first-name": "<string>", "last-name": "<string>" } '
{ "id": 1, "additional-emails": [ "<string>" ], "avatars": {}, "created": "2023-11-07T05:31:56Z", "email": "<string>", "first-name": "<string>", "last-name": "<string>", "parent": { "id": 1, "email": "<string>", "role": "root", "status": "anonymous", "username": "<string>" }, "parent-user-ids": [ 1 ], "permissions": {}, "plan": { "active": true, "amount": { "fixed": 123, "max": 123, "min": 123, "preset": 123, "tiers": [ 123 ] }, "created": "2023-11-07T05:31:56Z", "currency": "aed", "description": "<string>", "details": {}, "id": "<string>", "name": "<string>", "recurring-interval": "month", "stripe-price": "<unknown>", "type": "recurring" }, "restrictions": {}, "role": "root", "root-user-id": 1, "status": "anonymous", "stripe_customer_id": "<string>", "updated": "2023-11-07T05:31:56Z", "username": "<string>" }
API Key Security (Header).
User ID.
x >= 1
"J"
"Doe"
OK
x >= 0
Show child attributes
"[email protected]"
root
admin
user
sub
anonymous
pending
active
suspended
"theUser"