listWebhooks method

Future<ListWebhooksOutput> listWebhooks({
  1. required String agentSpaceId,
  2. required String associationId,
})

List all webhooks for given Association

May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter agentSpaceId : The unique identifier of the AgentSpace

Parameter associationId : The unique identifier of the given association.

Implementation

Future<ListWebhooksOutput> listWebhooks({
  required String agentSpaceId,
  required String associationId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri:
        '/v1/agentspaces/${Uri.encodeComponent(agentSpaceId)}/associations/${Uri.encodeComponent(associationId)}/webhooks/list',
    hostPrefix: 'cp.',
    exceptionFnMap: _exceptionFns,
  );
  return ListWebhooksOutput.fromJson(response);
}