https://api.track.toggl.com/webhooks/api/v1/subscriptions/{workspace_id}/{subscription_id}
Remove existing subscription given its ID and workspace ID.
- cURL
- Go
- Ruby
- JavaScript
- Python
- Rust
extern crate tokio;extern crate serde_json;use reqwest::{Client};use reqwest::header::{CONTENT_TYPE};#[tokio::main]async fn main() -> Result<(), reqwest::Error> { let client = Client::new(); let json = client.request(Method::DELETE, "https://api.track.toggl.com/webhooks/api/v1/subscriptions/{workspace_id}/{subscription_id}".to_string()) .header(CONTENT_TYPE, "application/json") .send() .await? .json() .await?; println!("{:#?}", json); Ok(())}
Parameters
Path
name | type | required | description |
---|---|---|---|
workspace_id | integer | true | Numeric ID of the workspace |
subscription_id | integer | true | Numeric ID of the subscription |
Response
200
Name | Type | Description |
---|---|---|
created_at | string | - |
deleted_at | string | - |
description | string | - |
enabled | boolean | - |
event_filters | Array of SubscriptionEventFilter | - |
has_pending_events | boolean | - |
secret | string | - |
subscription_id | integer | - |
updated_at | string | - |
url_callback | string | - |
user_id | integer | - |
validated_at | string | - |
workspace_id | integer | - |
403
User not found/accessible for workspace
404
subscription {subscription_id} for workspace {workspace_id} was not found
500
Internal Server Error