Controller/CategoriesController.php
public function updateCategory($id, Category $category)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['category' => $category], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/categories/' . $id . '', $parameters);
        $result = new CategoryResponse($result);

        return $result;
    }
public function updateCategory($id, Category $category)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['category' => $category], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/categories/' . $id . '', $parameters);
        $result = new CategoryResponse($result);

        return $result;
    }
Update a Category.

@param  int              $id       the Category identifier
@param  Category         $category A JSON encoded Category representing the updates
@return CategoryResponse