Veljko
1
https://api.track.toggl.com/api/v9/organizations/{organization_id}/workspaces/{workspace_id}/groups
Returns list of groups in a workspace based on set of url parameters. List is sorted by name.
- 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::GET, "https://api.track.toggl.com/api/v9/organizations/{organization_id}/workspaces/{workspace_id}/groups".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 |
workspace_id |
integer |
true |
Numeric ID of the workspace within the organization |
Response
200
Name |
Type |
Description |
items |
Array of object |
- |
items
Name |
Type |
Description |
at |
string |
- |
group_id |
integer |
- |
name |
string |
- |
permissions |
string |
- |
users |
Array of object |
- |
workspaces |
Array of integer |
- |
users
Name |
Type |
Description |
avatar_url |
string |
- |
inactive |
boolean |
- |
joined |
boolean |
- |
name |
string |
- |
user_id |
integer |
- |
403
Forbidden
404
Resource can not be found