deprecateWhatsAppFlow method
Deprecates a published WhatsApp Flow, marking it as no longer recommended for use. The Flow must be in PUBLISHED status. This is an irreversible operation.
May throw AccessDeniedByMetaException.
May throw DependencyException.
May throw InternalServiceException.
May throw InvalidParametersException.
May throw ResourceNotFoundException.
May throw ThrottledRequestException.
Parameter flowId :
The unique identifier of the Flow to deprecate.
Parameter id :
The ID of the WhatsApp Business Account associated with this Flow.
Implementation
Future<void> deprecateWhatsAppFlow({
required String flowId,
required String id,
}) async {
final $payload = <String, dynamic>{
'flowId': flowId,
'id': id,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/v1/whatsapp/flow/deprecate',
exceptionFnMap: _exceptionFns,
);
}