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>"
}
}
}Update a 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>"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Resource UUID
Successful response
Show child attributes
Was this page helpful?