curl --request PUT \
--url https://core.ravenna.ai/api/users/{id} \
--header 'Content-Type: application/json' \
--header 'x-ravenna-api-token: <api-key>' \
--data '{
"firstName": "<string>",
"lastName": "<string>",
"workspaceRole": "GUEST",
"organizationRole": "GUEST",
"email": "<string>",
"image": {
"base64": "<string>",
"fileName": "<string>"
}
}'
{
"id": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"image": "<string>",
"emailVerified": "<string>",
"defaultWorkspaceId": "<string>",
"isGuestCreated": true,
"isBot": true,
"createdAt": "<string>",
"auth0Id": "<string>",
"updatedAt": "<string>",
"slackUsers": [
{
"id": "<string>",
"slackUserId": "<string>",
"slackTeamId": "<string>",
"slackAppId": "<string>",
"slackImageUrl": "<string>",
"slackRealName": "<string>",
"isBot": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"slackApp": {
"appId": "<string>"
}
}
]
}
curl --request PUT \
--url https://core.ravenna.ai/api/users/{id} \
--header 'Content-Type: application/json' \
--header 'x-ravenna-api-token: <api-key>' \
--data '{
"firstName": "<string>",
"lastName": "<string>",
"workspaceRole": "GUEST",
"organizationRole": "GUEST",
"email": "<string>",
"image": {
"base64": "<string>",
"fileName": "<string>"
}
}'
{
"id": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"image": "<string>",
"emailVerified": "<string>",
"defaultWorkspaceId": "<string>",
"isGuestCreated": true,
"isBot": true,
"createdAt": "<string>",
"auth0Id": "<string>",
"updatedAt": "<string>",
"slackUsers": [
{
"id": "<string>",
"slackUserId": "<string>",
"slackTeamId": "<string>",
"slackAppId": "<string>",
"slackImageUrl": "<string>",
"slackRealName": "<string>",
"isBot": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"slackApp": {
"appId": "<string>"
}
}
]
}
Successful response
The response is of type object
.
Was this page helpful?