PUT
/
api
/
user
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.

Authorizations

Authorization
string
header
required

Headers

TR-Organization
string
required

The organization id to use for the request

Body

application/json
JSON request payload to update user information for the auth'ed user

The body is of type object.

Response

204

Confirmation that the user's role was updated