executeSlackWebhook abstract method

  1. @POST.new('/webhooks/{webhook_id}/{token}/slack')
Future<String> executeSlackWebhook({
  1. @Path.new('webhook_id') required SnowflakeType webhookId,
  2. @Path.new('token') required String token,
  3. @Body.new() required SlackWebhookRequest body,
})

Execute Slack webhook.

Receives and processes Slack-formatted webhook payloads, converting them to messages in the configured channel. Returns "ok" as plain text with a 200 status code.

webhookId - The ID of the webhook.

token - The token.

body - Name not received - field will be skipped.

Implementation

@POST('/webhooks/{webhook_id}/{token}/slack')
Future<String> executeSlackWebhook({
  @Path('webhook_id') required SnowflakeType webhookId,
  @Path('token') required String token,
  @Body() required SlackWebhookRequest body,
});