Skip to main content
PUT
/
v1
/
company
/
users
/
{userId}
/
role
Update user role
curl --request PUT \
  --url https://api-fundflow.venly.io/v1/v1/company/users/{userId}/role \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "COMPANY_ADMIN"
}
'
{
  "success": true,
  "result": {
    "id": "<string>",
    "username": "<string>",
    "email": "<string>",
    "firstName": "<string>",
    "lastName": "<string>",
    "enabled": true,
    "role": "COMPANY_ADMIN",
    "invitationUrl": "<string>",
    "invitationStatus": "PENDING"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.venlyfinance.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

OAuth2 authentication via Venly Identity Platform

Path Parameters

userId
string
required

Unique identifier of the user

Body

application/json

Request to change the role of an existing company user

role
enum<string>
required

New role for the user

Available options:
COMPANY_ADMIN,
COMPANY_VIEWER,
COMPANY_MANAGER

Response

User role successfully updated

success
boolean
default:true
result
object

Company user details