//library/com.uploadcare.android.library.api/UploadcareClient/updateWebhookAsync
updateWebhookAsync
[androidJvm]
Content
fun updateWebhookAsync(context: Context, webhookId: Int, targetUrl: URI, event: String, isActive: Boolean = true, callback: UploadcareWebhookCallback)
More info
Update webhook attributes Asynchronously.
Parameters
androidJvm
Name | Summary |
---|---|
callback | callback UploadcareWebhookCallback with either a response with UploadcareWebhook or a failure exception. |
context | Application context. android.content.Context |
event | An event you subscribe to. Only “file.uploaded” event supported. If {@code null} then this field won’t be updated. |
isActive | Marks a subscription as either active or not. Default value is {@code true}. |
targetUrl | A URL that is triggered by an event. If {@code null} then this field won’t be updated. |
webhookId | Webhook id. If {@code null} then this field won’t be updated. |