"Invitations" Endpoints - POST Accepts invitation

https://api.track.toggl.com/api/v9/organizations/invitations/{invitation_code}/accept

User connected with invitation is marked as joined, email is sent to the inviter.

  • 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::POST, "https://api.track.toggl.com/api/v9/organizations/invitations/{invitation_code}/accept".to_string())  .header(CONTENT_TYPE, "application/json")  .send()  .await?  .json()  .await?;    println!("{:#?}", json);  Ok(())}

Parameters

Path

name type required description
inviutation_code string true Invitation code

Response

200

OK

403

Forbidden

404

Invalid invitation code