/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.
Parameters
5 body
idstringRequiredIdentifier 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 fieldsGranular permission grants with optional per-code expiry.
roleGrantsobject[]2 fieldsGranular role grants with optional per-code expiry.
Request
POST /bff/member/save-permissions
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.