Update a category.

URL ресурса

https://Your project.userecho.com/api/v2/forums/[forum_id]/categories.json

Параметры

Параметр Значение Обязательный? По умолчанию Опции Описание
id Integer yes ID
name String no Имя категории
description String no "" Category description
parent_id Integer no null Parent category ID

Пример запроса

{
    "id": 12345,
    "name": "Renamed category",
    "description": "Our renamed category",
    "parent_id": 4
}

Пример ответа

{
    "feedback_count": 0, 
    "description": "Our renamed category", 
    "name": "Renamed category", 
    "id": 12345
}