delete_grant
DELETE
/admin/principals/{id}/grants/{grant_id}
curl --request DELETE \ --url http://localhost:3001/admin/principals/00000000-0000-0000-0000-000000000000/grants/00000000-0000-0000-0000-000000000000 \ --header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3001/admin/principals/00000000-0000-0000-0000-000000000000/grants/00000000-0000-0000-0000-000000000000"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.status_code)use std::str::FromStr;use reqwest;
#[tokio::main]pub async fn main() { let url = "http://localhost:3001/admin/principals/00000000-0000-0000-0000-000000000000/grants/00000000-0000-0000-0000-000000000000";
let mut headers = reqwest::header::HeaderMap::new(); headers.insert("Authorization", "Bearer <token>".parse().unwrap());
let client = reqwest::Client::new(); let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url) .headers(headers) .send() .await;
let status = response.unwrap().status();
dbg!(status);}Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Principal ID
grant_id
required
string format: uuid
Grant ID
Responses
Section titled “Responses”Deleted
Not found