SevenShores\Hubspot\Resources\Workflows::create PHP Method

create() public method

Create a new workflow.
public create ( array $workflow ) : Response
$workflow array The workflow properties
return SevenShores\Hubspot\Http\Response
    function create($workflow)
    {
        $endpoint = "https://api.hubapi.com/automation/v2/workflows";
        $options['json'] = $workflow;
        return $this->client->request('post', $endpoint, $options);
    }