mirror of
https://github.com/LukeHagar/discoursejs.git
synced 2025-12-06 04:19:37 +00:00
27 KiB
27 KiB
UpdateCategoryCategory
Example Usage
import { UpdateCategoryCategory } from "@lukehagar/discoursejs/sdk/models/operations";
let value: UpdateCategoryCategory = {
allTopicsWiki: false,
allowBadges: false,
allowUnlimitedOwnerEditsOnFirstPost: false,
autoCloseBasedOnLastPost: false,
autoCloseHours: "<value>",
availableGroups: ["<value>"],
canDelete: false,
canEdit: false,
color: "red",
customFields: {},
defaultListFilter: "<value>",
defaultSlowModeSeconds: "<value>",
defaultTopPeriod: "<value>",
defaultView: "<value>",
description: "Switchable incremental product",
descriptionExcerpt: "<value>",
descriptionText: "<value>",
emailIn: "<value>",
emailInAllowStrangers: false,
formTemplateIds: ["<value>"],
groupPermissions: [
{
groupName: "<value>",
permissionType: 842777,
},
],
hasChildren: false,
id: 720528,
mailinglistMirror: false,
minimumRequiredTags: 373216,
name: "<value>",
navigateToFirstPostAfterRead: false,
notificationLevel: 633415,
numFeaturedTopics: 222864,
permission: 307376,
position: 80532,
postCount: 537279,
readOnlyBanner: "<value>",
readRestricted: false,
requiredTagGroups: [
{
minCount: 85311,
name: "<value>",
},
],
searchPriority: 274575,
showSubcategoryList: false,
slug: "<value>",
sortAscending: "<value>",
sortOrder: "<value>",
subcategoryListStyle: "<value>",
textColor: "<value>",
topicCount: 221396,
topicFeaturedLinkAllowed: false,
topicTemplate: "<value>",
topicUrl: "<value>",
uploadedBackground: "<value>",
uploadedBackgroundDark: "<value>",
uploadedLogo: "<value>",
uploadedLogoDark: "<value>",
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
allTopicsWiki |
boolean | ✔️ | N/A |
allowBadges |
boolean | ✔️ | N/A |
allowGlobalTags |
boolean | ➖ | N/A |
allowUnlimitedOwnerEditsOnFirstPost |
boolean | ✔️ | N/A |
allowedTagGroups |
any[] | ➖ | N/A |
allowedTags |
any[] | ➖ | N/A |
autoCloseBasedOnLastPost |
boolean | ✔️ | N/A |
autoCloseHours |
string | ✔️ | N/A |
availableGroups |
any[] | ✔️ | N/A |
canDelete |
boolean | ✔️ | N/A |
canEdit |
boolean | ✔️ | N/A |
categorySetting |
any | ➖ | N/A |
color |
string | ✔️ | N/A |
customFields |
operations.UpdateCategoryCustomFields | ✔️ | N/A |
defaultListFilter |
string | ✔️ | N/A |
defaultSlowModeSeconds |
string | ✔️ | N/A |
defaultTopPeriod |
string | ✔️ | N/A |
defaultView |
string | ✔️ | N/A |
description |
string | ✔️ | N/A |
descriptionExcerpt |
string | ✔️ | N/A |
descriptionText |
string | ✔️ | N/A |
emailIn |
string | ✔️ | N/A |
emailInAllowStrangers |
boolean | ✔️ | N/A |
formTemplateIds |
any[] | ✔️ | N/A |
groupPermissions |
operations.UpdateCategoryGroupPermissions[] | ✔️ | N/A |
hasChildren |
boolean | ✔️ | N/A |
id |
number | ✔️ | N/A |
mailinglistMirror |
boolean | ✔️ | N/A |
minimumRequiredTags |
number | ✔️ | N/A |
name |
string | ✔️ | N/A |
navigateToFirstPostAfterRead |
boolean | ✔️ | N/A |
notificationLevel |
number | ✔️ | N/A |
numFeaturedTopics |
number | ✔️ | N/A |
permission |
number | ✔️ | N/A |
position |
number | ✔️ | N/A |
postCount |
number | ✔️ | N/A |
readOnlyBanner |
string | ✔️ | N/A |
readRestricted |
boolean | ✔️ | N/A |
requiredTagGroups |
operations.UpdateCategoryRequiredTagGroups[] | ✔️ | N/A |
searchPriority |
number | ✔️ | N/A |
showSubcategoryList |
boolean | ✔️ | N/A |
slug |
string | ✔️ | N/A |
sortAscending |
string | ✔️ | N/A |
sortOrder |
string | ✔️ | N/A |
subcategoryListStyle |
string | ✔️ | N/A |
textColor |
string | ✔️ | N/A |
topicCount |
number | ✔️ | N/A |
topicFeaturedLinkAllowed |
boolean | ✔️ | N/A |
topicTemplate |
string | ✔️ | N/A |
topicUrl |
string | ✔️ | N/A |
uploadedBackground |
string | ✔️ | N/A |
uploadedBackgroundDark |
string | ✔️ | N/A |
uploadedLogo |
string | ✔️ | N/A |
uploadedLogoDark |
string | ✔️ | N/A |