Skip to main content
PUT
/
workspaceManagement
/
users
/
{uuid}
Update user
curl --request PUT \
  --url https://api.getcargo.io/v1/workspaceManagement/users/{uuid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "roleSlug": "<string>",
  "permissions": [
    {
      "effect": "allow",
      "resources": [
        "<string>"
      ],
      "actions": [
        "ai:agent:*"
      ]
    }
  ]
}
'
{
  "user": {
    "uuid": "<string>",
    "email": "<string>",
    "firstName": "<string>",
    "lastName": "<string>",
    "picture": "<string>",
    "lastSignInAt": "<string>",
    "createdAt": "<string>",
    "workspaceUuid": "<string>",
    "permissions": [
      {
        "effect": "allow",
        "resources": [
          "<string>"
        ],
        "actions": [
          "ai:agent:*"
        ]
      }
    ],
    "role": {
      "uuid": "<string>",
      "slug": "<string>",
      "permissions": [
        {
          "effect": "allow",
          "resources": [
            "<string>"
          ],
          "actions": [
            "ai:agent:*"
          ]
        }
      ],
      "workspaceUuid": "<string>",
      "createdAt": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

uuid
string
required

Resource UUID

Body

application/json

Request body schema.

roleSlug
string
permissions
object[]

Response

Successful response

user
object
required