postAutoConnectorsByIdRun method
Run executes one connector action in-process and answers the outcome.
Run executes one connector action in-process and answers the outcome. The caller's resolved credential travels in auth, delivered to the action verbatim — the runtime resolves no credential itself. An action that ran and failed (or an action name the connector does not have) answers ok:false with the failure message, not an HTTP error; an unknown connector is 404 and a missing action 422.
Parameters:
Implementation
Future<RunResp?> postAutoConnectorsByIdRun(String id, RunIn runIn,) async {
final response = await postAutoConnectorsByIdRunWithHttpInfo(id, runIn,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'RunResp',) as RunResp;
}
return null;
}