public function batchUpdate(array $objectIDs, $categoryConst, array $attributes) {
        $requests = [];

        foreach ($objectIDs as $objectID) {
            $requests[] = [
                'method' => 'cmdb.category.update',
                'params' => [
                    'objID' => $objectID,
                    'category' => $categoryConst,
                    'data' => $attributes
                ]
            ];
        }

        $results = $this->api->batchRequest($requests);

        foreach ($results as $result) {
            if (!array_key_exists('success', $result) ||
                $result['success'] !== true) {
                if (array_key_exists('message', $result)) {
                    throw new RuntimeException(sprintf('Bad result: %s', $result['message']));
                } else {
                    throw new RuntimeException('Bad result');
                }
            }
        }

        return $this;
    }