//library/com.uploadcare.android.library.api/UploadcareClient/updateWebhook

updateWebhook

[androidJvm]
Content
fun updateWebhook(webhookId: Int, targetUrl: URI, event: String, isActive: Boolean = true): UploadcareWebhook
More info

Update webhook attributes.

Return

New webhook resource instance.

Parameters

androidJvm

Name Summary
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.