function create($workflow) { $endpoint = "https://api.hubapi.com/automation/v2/workflows"; $options['json'] = $workflow; return $this->client->request('post', $endpoint, $options); }