discourse/spec/requests/api/schemas
Natalie Tay 3a6afa75e7
DEV: Supplement updateCategory API doc to include localizations (#33601)
We're moving the `_destroy` logic for localizations to the backend. The
`updateCategory` API should look something like this:

```
# Scenario: edit italian, add japanese, delete spanish (just exclude from list)

# PUT /categories/4
{
  "name": "General",
  "slug": "general",
  "color": "25AAE2",
  #  ...
  "category_localizations": [
    {
      "id": 102
      "locale": "it",
      "name": "generale",
      "description": "Si prega di creare qui argomenti che non rientrano in altre categorie esistenti."
    }
    {
      "locale": "ja",
      "name": "一般",
      "description": "他の既存のカテゴリに該当しないトピックをここに作成してください。"
    }
  ]
}
```
2025-07-15 22:03:33 +08:00
..
json DEV: Supplement updateCategory API doc to include localizations (#33601) 2025-07-15 22:03:33 +08:00
schema_loader.rb DEV: Apply syntax_tree formatting to spec/* 2023-01-09 11:49:28 +00:00