Create category
documentedCreate a new category.
POST /categories.jsonCategoriesno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.discourse.org/api/categories.json" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Api-Key: {{DISCOURSE_API_KEY}}" \
-H "Api-Username: {{DISCOURSE_API_USERNAME}}" \
-d '{"name": "{{$name}}", "color": "{{$color}}", "text_color": "{{$text_color}}", "parent_category_id": {{$parent_category_id}}, "slug": "{{$slug}}", "permissions": {"everyone": {{$permissions_everyone}}, "staff": {{$permissions_staff}}}, "allow_badges": {{$allow_badges}}, "topic_featured_links_allowed": {{$topic_featured_links_allowed}} }'