πͺ Add / Change / Remove Webhook
In this article
In this article group
- β Add Resource
- βοΈ Modify Resource
- π Add Student to College
- π¨βπ« Add Teacher to College
- π Add Student to Degree
- β Add Attendance
- π¬ Add Feedback
- π Add Grade
- π€ Add Submission
- βΈοΈ Pause / Unpause Degree Student
- ποΈ Archive Activity
- π Archive Course Progress
- βοΈ Change Email
- π Generate User Token
- ποΈ Archive Degree Student
- π·οΈ Change Degree Student Scholarship
- π¨ Submit Students for Evaluation
- π¦ Bulk Upload Activity
- π Add / Remove Resource Cross-Listing Tags
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