πͺ Add / Change / Remove Webhook
The addWebhook, changeWebhook, and removeWebhook mutations manage your college's webhook subscriptions. A subscription sends the selected events to your URL. To list existing subscriptions, use Get Webhooks; for event payloads, see Webhooks.
addWebhook
Creates a new webhook subscription for the selected events. Store the returned webhook id on your side β you need it to change or remove the subscription.
Input Parameters
Parameter | Type | Description |
|---|---|---|
| [WebhookEvent!]! | Events to subscribe to (see WebhookEvent Values below). |
| String! | Destination URL that receives the events. |
Response Fields
Returns the created Webhook (see Related Types).
πΒ Request (Try It)
changeWebhook
Updates an existing webhook subscription β change the subscribed events, the destination URL, or both. Only the fields you provide are changed.
Input Parameters
Parameter | Type | Description |
|---|---|---|
| ID! | ID of the webhook subscription to update. |
| [WebhookEvent!] | New list of subscribed events (optional). |
| String | New destination URL (optional). |
Response Fields
Returns the updated Webhook.
πΒ Request (Try It)
removeWebhook
Deletes an existing webhook subscription.
Input Parameters
Parameter | Type | Description |
|---|---|---|
| ID! | ID of the webhook subscription to remove. |
Response Fields
Field | Type | Description |
|---|---|---|
| Boolean | Returns |
πΒ Request (Try It)
Related Types
Webhook
Field | Type | Description |
|---|---|---|
| ID! | Unique identifier of the webhook subscription. |
| String! | Destination URL that receives webhook events. |
| [WebhookEvent!]! | Events the subscription is subscribed to. |
| String! | Timestamp when the subscription was created. |
| String! | Timestamp when the subscription was last updated. |
WebhookEvent Values
REJECTED_RESOURCE, STUDENT_PASSED_COURSE, IMPORTED_ASSETS, DEGREE_STUDENT_ACTIVATED, DEGREE_STUDENT_COMPLETED_APPLICATION, DEGREE_STUDENT_ARCHIVED, DEGREE_STUDENT_DELISTED, DEGREE_STUDENT_COMPLETED, ACTIVITY_UPLOAD_FINISHED