Data Action - Execute 400

Architect flow’s POST to /api/v2/integrations/actions/{actionId}/execute is failing.

The data action itself-simple HTTP POST-works fine outside of Architect. It’s the SDK’s generated payload that’s the problem.

The error is 400 Bad Request - message says “requestBody is required”. At my last shop, we always had to explicitly set the body parameter on the execute call.

import { DataActionApi } from '@genesyscloud/platform-api-js';

const dataActionApi = new DataActionApi();

try {
 const response = await dataActionApi.executeDataAction(
 actionId,
 {
 // no body parameter!
 }
 );
} catch (error) {
 console.error(error);
}

The type definitions don’t show a body parameter. Feels like a schema mismatch. Is it supposed to infer this from the request object? I’m not convinced.