use postman2::PostmanClient; use postman2::model::*; #[tokio::main] async fn main() { let client = PostmanClient::from_env(); let api_id = "your api id"; let response = client .update_an_api(api_id) .api(::serde_json::json!({})) .send() .await .unwrap(); println!("{:#?}", response); }