Creates a new badge.
You can only call this method when authenticated as a Wix app or Wix user identity.
Badge to create.
Created badge.
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
}'
{
"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"
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.