public function createCron($environmentUuid, $command, $frequency, $label)
    {

        $options = [
            'form_params' => [
                'command' => $command,
                'frequency' => $frequency,
                'label' => $label,
            ],
        ];

        return new OperationResponse(
            $this->connector->request('post', "/environments/${environmentUuid}/crons", $this->query, $options)
        );
    }
public function createCron($environmentUuid, $command, $frequency, $label)
    {

        $options = [
            'form_params' => [
                'command' => $command,
                'frequency' => $frequency,
                'label' => $label,
            ],
        ];

        return new OperationResponse(
            $this->connector->request('post', "/environments/${environmentUuid}/crons", $this->query, $options)
        );
    }
public function createCron ( $ environmentUuid , $ command , $ frequency , $ label ) { $ options = [ 'form_params' => [ 'command' => $ command , 'frequency' => $ frequency , 'label' => $ label , ] , ] ; return new OperationResponse ( $ this -> connector -> request ( 'post' , "/environments/${environmentUuid}/crons" , $ this -> query , $ options ) ) ; }
Add a cron task.

@param string $environmentUuid
@param string $command
@param string $frequency
@param string $label
@return OperationResponse
Add a cron task .