curl --request PATCH \
--url https://api.sandbox.tesouro.com/identity/v1/users/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"country": "<string>",
"jobTitle": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"postalCode": "<string>",
"stateOrProvince": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"name": "<string>",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"country": "<string>",
"jobTitle": "<string>",
"phoneNumber": "<string>",
"postalCode": "<string>",
"stateOrProvince": "<string>"
}Requires user:profile:write (own org) or user:profile:write:all (cross-org). A caller cannot update their own profile.
Token types: APP, USER
curl --request PATCH \
--url https://api.sandbox.tesouro.com/identity/v1/users/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"country": "<string>",
"jobTitle": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"postalCode": "<string>",
"stateOrProvince": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"name": "<string>",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"country": "<string>",
"jobTitle": "<string>",
"phoneNumber": "<string>",
"postalCode": "<string>",
"stateOrProvince": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The user ID to update.
Cancellation token.
User updated successfully.
Was this page helpful?