POST

Assign Badge To Members


Assigns a badge to the specified members. The members inherit the badge's permissions when they receive the badge, if applicable. Badge permissions are added to previous member permissions (they don't replace existing permissions).

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Badges
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/members/v3/badges/{id}/members

Path Params
idstringRequired

Badge ID.

Body Params
memberIdsArray <string>Requiredformat GUID

List of member IDs to assign to the badge.

Response Object
memberIdsArray <string>format GUID

List of member IDs assigned to the badge.

Assign members to badge
Request
cURL
curl -X POST \ 'https://www.wixapis.com/members/v3/badges/80d5e4aa-0ab2-4bab-b941-a7459239a02e/members' \ -H 'Authorization: <AUTH>' -d '{ "memberIds": [ "cdd1993d-811e-453d-8a0e-b9e0f7780b96", "b32b708e-d531-42fb-846b-f23c367d9c92" ] }'
Response
JSON
{ "memberIds": [ "cdd1993d-811e-453d-8a0e-b9e0f7780b96", "b32b708e-d531-42fb-846b-f23c367d9c92" ] }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?