Revoke a member's Canvas API token
curl --request DELETE \
--url https://hiimpria.ai/api/admin/userInstitution/{id}/canvasToken \
--header 'x-access-token: <api-key>'import requests
url = "https://hiimpria.ai/api/admin/userInstitution/{id}/canvasToken"
headers = {"x-access-token": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-access-token': '<api-key>'}};
fetch('https://hiimpria.ai/api/admin/userInstitution/{id}/canvasToken', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://hiimpria.ai/api/admin/userInstitution/{id}/canvasToken",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://hiimpria.ai/api/admin/userInstitution/{id}/canvasToken"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://hiimpria.ai/api/admin/userInstitution/{id}/canvasToken")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/admin/userInstitution/{id}/canvasToken")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"revoked": true,
"message": "<string>"
}Admin Entitlements
Revoke a member's Canvas API token
Removes the Canvas API token stored on a membership and the Canvas account the membership is connected to, so the member can connect again with their own Canvas account. Requires the institutions.edit entitlement on the membership’s Digital Twin. The member’s own token management stays on PUT /api/user/userInstitution/.
DELETE
/
api
/
admin
/
userInstitution
/
{id}
/
canvasToken
Revoke a member's Canvas API token
curl --request DELETE \
--url https://hiimpria.ai/api/admin/userInstitution/{id}/canvasToken \
--header 'x-access-token: <api-key>'import requests
url = "https://hiimpria.ai/api/admin/userInstitution/{id}/canvasToken"
headers = {"x-access-token": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-access-token': '<api-key>'}};
fetch('https://hiimpria.ai/api/admin/userInstitution/{id}/canvasToken', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://hiimpria.ai/api/admin/userInstitution/{id}/canvasToken",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://hiimpria.ai/api/admin/userInstitution/{id}/canvasToken"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://hiimpria.ai/api/admin/userInstitution/{id}/canvasToken")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/admin/userInstitution/{id}/canvasToken")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"revoked": true,
"message": "<string>"
}Authorizations
JWT token passed in x-access-token header
Path Parameters
The membership (user institution) ID
Was this page helpful?