mirror of
https://github.com/LukeHagar/discoursejs.git
synced 2025-12-06 12:27:48 +00:00
57 lines
2.7 KiB
Markdown
57 lines
2.7 KiB
Markdown
# UpdateBadgeBadge
|
|
|
|
## Example Usage
|
|
|
|
```typescript
|
|
import { UpdateBadgeBadge } from "@lukehagar/discoursejs/sdk/models/operations";
|
|
|
|
let value: UpdateBadgeBadge = {
|
|
allowTitle: false,
|
|
autoRevoke: false,
|
|
badgeGroupingId: 315428,
|
|
badgeTypeId: 607831,
|
|
description: "Horizontal eco-centric local area network",
|
|
enabled: false,
|
|
grantCount: 38425,
|
|
icon: "<value>",
|
|
id: 438601,
|
|
imageUrl: "<value>",
|
|
listable: false,
|
|
longDescription: "<value>",
|
|
manuallyGrantable: false,
|
|
multipleGrant: false,
|
|
name: "<value>",
|
|
query: "<value>",
|
|
showPosts: false,
|
|
slug: "<value>",
|
|
system: false,
|
|
targetPosts: false,
|
|
trigger: "<value>",
|
|
};
|
|
```
|
|
|
|
## Fields
|
|
|
|
| Field | Type | Required | Description |
|
|
| ------------------- | ------------------- | ------------------- | ------------------- |
|
|
| `allowTitle` | *boolean* | :heavy_check_mark: | N/A |
|
|
| `autoRevoke` | *boolean* | :heavy_check_mark: | N/A |
|
|
| `badgeGroupingId` | *number* | :heavy_check_mark: | N/A |
|
|
| `badgeTypeId` | *number* | :heavy_check_mark: | N/A |
|
|
| `description` | *string* | :heavy_check_mark: | N/A |
|
|
| `enabled` | *boolean* | :heavy_check_mark: | N/A |
|
|
| `grantCount` | *number* | :heavy_check_mark: | N/A |
|
|
| `icon` | *string* | :heavy_check_mark: | N/A |
|
|
| `id` | *number* | :heavy_check_mark: | N/A |
|
|
| `imageUrl` | *string* | :heavy_check_mark: | N/A |
|
|
| `listable` | *boolean* | :heavy_check_mark: | N/A |
|
|
| `longDescription` | *string* | :heavy_check_mark: | N/A |
|
|
| `manuallyGrantable` | *boolean* | :heavy_check_mark: | N/A |
|
|
| `multipleGrant` | *boolean* | :heavy_check_mark: | N/A |
|
|
| `name` | *string* | :heavy_check_mark: | N/A |
|
|
| `query` | *string* | :heavy_check_mark: | N/A |
|
|
| `showPosts` | *boolean* | :heavy_check_mark: | N/A |
|
|
| `slug` | *string* | :heavy_check_mark: | N/A |
|
|
| `system` | *boolean* | :heavy_check_mark: | N/A |
|
|
| `targetPosts` | *boolean* | :heavy_check_mark: | N/A |
|
|
| `trigger` | *string* | :heavy_check_mark: | N/A | |