action discourse_create_badge { label: "Create badge" provider: discourse method: POST path: "/admin/badges.json" encoding: json input: { required: ["badge_type_id", "name"] properties: { badge_type_id: { type: "integer" description: "The ID for the badge type. 1 for Gold, 2 for Silver,\n3 for Bronze." } name: { type: "string" description: "The name for the new badge." } } additionalProperties: false } output: { required: ["badge", "badge_types"] properties: { badge: { type: "object" required: ["allow_title", "auto_revoke", "badge_grouping_id", "badge_type_id", "description", "enabled", "grant_count", "icon", "id", "image_url", "listable", "long_description", "manually_grantable", "multiple_grant", "name", "query", "show_posts", "slug", "system", "target_posts", "trigger"] properties: { allow_title: { type: "boolean" } auto_revoke: { type: "boolean" } badge_grouping_id: { type: "integer" } badge_type_id: { type: "integer" } description: { type: "string" } enabled: { type: "boolean" } grant_count: { type: "integer" } icon: { type: "string" } id: { type: "integer" } image_url: { type: ["string", "null"] } listable: { type: "boolean" } long_description: { type: "string" } manually_grantable: { type: "boolean" } multiple_grant: { type: "boolean" } name: { type: "string" } query: { type: ["string", "null"] } show_posts: { type: "boolean" } slug: { type: "string" } system: { type: "boolean" } target_posts: { type: "boolean" } trigger: { type: ["string", "null"] } } additionalProperties: false } badge_types: { type: "array" items: { type: "object" required: ["id", "name", "sort_order"] properties: { id: { type: "integer" } name: { type: "string" } sort_order: { type: "integer" } } additionalProperties: false } } } additionalProperties: false } }