curl --request PUT \
--url https://api.trieve.ai/api/user \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TR-Organization: <tr-organization>' \
--data '{
"role": 123,
"scopes": [
"<string>"
],
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
This response does not have an example.
Update a user’s information for the org specified via header. If the user_id is not provided, the auth’ed user will be updated. If the user_id is provided, the role of the auth’ed user or api key must be an admin (1) or owner (2) of the organization.
curl --request PUT \
--url https://api.trieve.ai/api/user \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TR-Organization: <tr-organization>' \
--data '{
"role": 123,
"scopes": [
"<string>"
],
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
This response does not have an example.
The organization id to use for the request
JSON request payload to update user information for the auth'ed user
The body is of type object
.
Confirmation that the user's role was updated
Was this page helpful?