PATCH

Update Badge


Updates a badge's specified properties.

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
PATCH
https://www.wixapis.com/members/v3/badges/{badge.id}

Path Params
badge.idstringRequired

Badge ID.

Body Params
badgeBadgeRequired

Badge to update.

Response Object
badgeBadge

Updated badge.

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