POST

Create Badge


Creates a new badge.

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

Body Params
badgeBadgeRequired

Badge to create.

Response Object
badgeBadge

Created badge.

Request
cURL
curl -X POST \ 'https://www.wixapis.com/members/v3/badges/members' \ -H 'Authorization: <AUTH>' -d '{ "title": "Awesome Badge", "description": "Badge for awesome people", "backgroundColor": "#FFFFFF", "textColor": "#FF0000", "icon": "https://my-icons.example/awesome.svg", "permissionsEnabled": true }'
Response
JSON
{ "badge": { "id": "80d5e4aa-0ab2-4bab-b941-a7459239a02e", "title": "Awesome Badge", "description": "Badge for awesome people", "backgroundColor": "#FFFFFF", "textColor": "#FF0000", "icon": "https://my-icons.example/awesome.svg", "permissionsEnabled": true, "slug": "awesome-badge", "createdDate": "2020-05-28T09:26:17.699Z", "updatedDate": "2020-05-28T09:26:17.699Z" } }
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?