Update a badge
Requires `COMMUNITY_BADGES_WRITE` and an app caller. Only the app's own badges; others are 404. `key` can't change.
Requires COMMUNITY_BADGES_WRITE and an app caller. Only the app's own badges; others are 404. key can't change.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
1 <= propertiesResponse Body
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/community/badges/string" \ -H "Content-Type: application/json" \ -d '{}'{ "data": { "id": "string", "appId": "string", "key": "string", "name": "string", "description": "string", "color": "string", "iconUrl": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}Create or update a badge by key POST
Requires `COMMUNITY_BADGES_WRITE` and an app caller. `key` is the app's stable slug for the badge: posting an existing key updates that badge (200), a new key creates one (201). Badges belong to the app in this workspace, so they come back with their awards after a reinstall. An app can have at most 50 badges per workspace; a new key past that is 409.
Delete a badge DELETE
Requires `COMMUNITY_BADGES_WRITE` and an app caller. Deletes the badge and every award of it. No `community.badge.revoked` events are sent.
Planeward Docs