src/CMDBObjects.php
public function archive(array $objectIDs) {
        $requests = [];

        foreach ($objectIDs as $objectID) {
            $requests[] = [
                'method' => 'cmdb.object.archive',
                'params' => [
                    'object' => $objectID
                ]
            ];
        }

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

        return $this;
    }
public function archive(array $objectIDs) {
        $requests = [];

        foreach ($objectIDs as $objectID) {
            $requests[] = [
                'method' => 'cmdb.object.archive',
                'params' => [
                    'object' => $objectID
                ]
            ];
        }

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

        return $this;
    }
public function archive ( array $ objectIDs ) { $ requests = [ ] ; foreach ( $ objectIDs as $ objectID ) { $ requests [ ] = [ 'method' => 'cmdb.object.archive' , 'params' => [ 'object' => $ objectID ] ] ; } $ this -> api -> batchRequest ( $ requests ) ; return $ this ; }
Archive one or more objects

@param array $objectIDs List of object identifiers as integers

@return self Returns itself

@throws Exception on error
Archive one or more objects