@SteveHTM @Josh
Also, I’ve below code and got this error:
$requestBody = [
'type' => 'CONTACT_FLOW',
'name' => 'Test WorkFlow',
'description' => 'Test WorkFlow',
'canEnrollFromSalesforce' => false,
'isEnabled' => true,
'flowType' => 'WORKFLOW',
'crmObjectCreationStatus' => 'COMPLETE',
'objectTypeId' => '0-1',
'startActionId' => 'actionId',
'enrollmentCriteria' => ['shouldReEnroll' => true, 'type' => 'MANUAL'],
'objectType' => 'CONTACT',
'actions' => [
[
'type' => 'SINGLE_CONNECTION',
'actionId' => 'actionId',
'actionTypeVersion' => 0,
'actionTypeId' => '0-1',
'fields' => [
'fieldName' => 'fieldValue'
]
]
]
];
$response = Http::withToken('access_token')
->accept('application/json')
->timeout(30)
->post('https://api.hubapi.com/automation/v4/flows', $requestBody);
$responseBody = $response->json();
```
[
“status” => “error”,
“message” => “internal error”,
“correlationId” => “c3bf5626-0afa-4a22-8d7f-4647d7fa0164”,
]
```