updateAction method
Updates an existing action.
Makes a PUT /form/:formId/action/:actionId request.
formId is the unique ID of the form.
actionId is the unique ID of the action to update.
action is the ActionModel with updated configuration.
Returns the updated ActionModel.
Throws DioError on failure.
Implementation
Future<ActionModel> updateAction(
String formId,
String actionId,
ActionModel action,
) async {
final response = await client.dio.put(
ApiEndpoints.updateAction(formId, actionId),
data: action.toJson(),
);
return ActionModel.fromJson(response.data as Map<String, dynamic>);
}