curl --request PATCH \
--url https://api.platform.dakota.xyz/users/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"first_name": "John",
"last_name": "Doe",
"role": "admin"
}
'{
"code": "invalid_request",
"message": "The request was invalid. Please check your input and try again.",
"details": {
"field": "amount",
"issue": "must be greater than 0"
}
}Update the name or role of an existing user
curl --request PATCH \
--url https://api.platform.dakota.xyz/users/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"first_name": "John",
"last_name": "Doe",
"role": "admin"
}
'{
"code": "invalid_request",
"message": "The request was invalid. Please check your input and try again.",
"details": {
"field": "amount",
"issue": "must be greater than 0"
}
}Unique identifier of the user to update KSUID is a 27-character globally unique ID that combines a timestamp with a random component. Used for all entity identifiers in the Dakota platform.
27"1NFHrqBHb3cTfLVkFSGmHZqdDPi"
Updated user details
user updated successfully