Skip to content
Account Memberships

Add Memberexperimental

POST/api/accounts/{accountId}/members

This endpoint allows you to add or update the membership of a user to an account.

Path parameters

  • accountIdrequired string
    The Account id.

Request body

  • rolerequired string
    The role governing Membership permissions.
  • userIdrequired string
    The id of the user the Membership belongs to.

Responses

Request
curl -X POST https://service.centrapay.com/api/accounts/Jaim1Cu1Q55uooxSens6yk/members \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"role": "account-owner",
"userId": "da75ad90-9a5b-4df0-8374-f48b3a8fbfcc"
}'