Skip to main content
PUT
/
api
/
v2
/
member
Update member
curl --request PUT \
  --url 'https://api.vida.dev/api/v2/member?token=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "targetMemberId": 3,
  "email": "member@acmesolar.com",
  "role": "admin",
  "permittedAccountIds": [
    12345,
    67890
  ]
}
'
{
  "success": true,
  "message": "Member updated"
}

Authorizations

token
string
query
required

Vida API Token

Body

application/json
targetMemberId
number
required

User Id of the member you are updating

Example:

3

email
string

New email for the member

Example:

"member@acmesolar.com"

role
string

Role for the member

Example:

"admin"

permittedAccountIds
number[]

Account ids that this member can access. Send empty array to remove all account restrictions

Example:
[12345, 67890]

Response

201 - application/json

Member updated

success
boolean
Example:

true

message
string
Example:

"Member updated"