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

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 enable or disable a company user account

enabled
boolean
required

Whether the user account should be enabled (true) or disabled (false)

Response

User status successfully updated

success
boolean
default:true
result
object

Company user details