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

createWebhook

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

Create and subscribe to webhook.

Return

New created webhook resource instance.

Parameters

androidJvm

Name Summary
event

An event you subscribe to. Only “file.uploaded” event supported.

isActive

Marks a subscription as either active or not.

targetUrl

A URL that is triggered by an event.