Appearance
Reject a request from the current user
| POST | /requests/{id}/reject |
Path parameters
| Name | Type | Description | Required |
|---|---|---|---|
id | string | ID of the request to reject | ✅ |
Request body schema
{}
// Response to the challenge
data: {signature: string;
challengeType: string;
} | null;Response schema
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Examples
bash
curl \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {jwt}" \
--data '{json-data}' \
"$API_BASE_URL/requests/{id}/reject"ts
const url = "<base-url>/requests/{id}/reject";
const headers = {
"Content-Type": "application/json",
Authorization: "Bearer <jwt>"
};
const payload = {}; // <- fill with the expected payload
fetch(url, { headers, method: "POST", body: JSON.stringify(payload) }).then(res => {
console.log(res)
});python
import requests
url = "<base-url>/requests/{id}/reject"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer <jwt>"
}
data = {} # <- fill with the expected payload
print(requests.post(url, headers=headers, data=data))