DocsAPI ReferenceMember/bff/member/save-permissions
postMemberAdmin BFF

/bff/member/save-permissions

Updates the permissions and roles assigned to a member. For active members this replaces all existing direct permissions and role assignments. For pending invitations the values are stored on the invitation row and applied when the invitee confirms.

MemberpostBffMemberSave-permissions

Parameters

5 body

5 total
Body · 5
idstringRequired

Identifier of the member (shop__contact.external_id for active members, pending-<token> for pending invitations).

permissionCodesstring[]

Legacy array of permission codes (no expiry). Ignored if permissionGrants is set.

roleCodesstring[]

Legacy array of role codes (no expiry). Ignored if roleGrants is set.

permissionGrantsobject[]2 fields

Granular permission grants with optional per-code expiry.

roleGrantsobject[]2 fields

Granular role grants with optional per-code expiry.

Request

POST /bff/member/save-permissions

post
curl -X POST "https://api.bizkithub.com/bff/member/save-permissions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "id": "example_id",
  "permissionCodes": [
    "string"
  ],
  "roleCodes": [
    "string"
  ],
  "permissionGrants": [
    {
      "code": "example_code"
    }
  ],
  "roleGrants": [
    {
      "code": "example_code"
    }
  ]
}'

Response

Permissions saved successfully.

{
  "success": true
}

All response codes

1 status code documented

Need an API key?

All BizKitHub API endpoints require authentication via API key.

Get API Key