registerDynamicWebhooks method
Future<ContainerForRegisteredWebhooks>
registerDynamicWebhooks({
- required WebhookRegistrationDetails body,
Registers webhooks.
NOTE: for non-public OAuth apps, webhooks are delivered only if there is a match between the app owner and the user who registered a dynamic webhook.
Permissions required: Only Connect and OAuth 2.0 apps can use this operation.
Implementation
Future<ContainerForRegisteredWebhooks> registerDynamicWebhooks(
{required WebhookRegistrationDetails body}) async {
return ContainerForRegisteredWebhooks.fromJson(await _client.send(
'post',
'rest/api/3/webhook',
body: body.toJson(),
));
}