https://api.track.toggl.com/api/v9/organizations/{organization_id}/groups/{group_id}
Deletes a group from the specified organization
- 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().basic_auth("<email>", "<password>"); let json = client.request(Method::DELETE, "https://api.track.toggl.com/api/v9/organizations/{organization_id}/groups/{group_id}".to_string()) .header(CONTENT_TYPE, "application/json") .send() .await? .json() .await?; println!("{:#?}", json); Ok(())}
Parameters
Path
name | type | required | description |
---|---|---|---|
organization_id | integer | true | Numeric ID of the organization. |
group_id | integer | true | Numeric ID of the group. |
Response
200
OK
403
User does not have access to this resource
404
Invalid group ID.