Approve an App Access Request
Approves an App Access Request on behalf of the API key owner, who must be one of its pending approvers: this submits the owner’s own approval, it is not an admin override. Access is provisioned once every remaining approval clears. The decision is final; the approval cycle then advances asynchronously, so the returned status may not reflect it yet. Repeating the same decision returns 200 with the same receipt. This endpoint may change or be removed without prior notice.
PUT
/
v1
/
app_access
/
requests
/
{uid}
/
approve
Approve an App Access Request
curl --request PUT \
--url https://api.siit.io/v1/app_access/requests/{uid}/approve \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.siit.io/v1/app_access/requests/{uid}/approve"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.siit.io/v1/app_access/requests/{uid}/approve', 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://api.siit.io/v1/app_access/requests/{uid}/approve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.siit.io/v1/app_access/requests/{uid}/approve"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.siit.io/v1/app_access/requests/{uid}/approve")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.siit.io/v1/app_access/requests/{uid}/approve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"result": {
"uid": "<string>",
"status": "cancelled",
"can_approve": true,
"application": "<string>",
"role": "<string>",
"app_access_role_uid": "<string>",
"app_access_role_name": "<string>",
"request": "<string>",
"requester": "<string>",
"initiator": "<string>",
"approvals": [
"<string>"
],
"business_reason_markdown": "<string>",
"duration_minutes": 123,
"duration_unit": "days",
"failure_reason": "<string>",
"failure_reason_key": "<string>",
"submitted_at": "2023-11-07T05:31:56Z",
"rejected_at": "2023-11-07T05:31:56Z",
"cancelled_at": "2023-11-07T05:31:56Z",
"expired_at": "2023-11-07T05:31:56Z",
"failed_at": "2023-11-07T05:31:56Z",
"provisioning_started_at": "2023-11-07T05:31:56Z",
"provisioning_completed_at": "2023-11-07T05:31:56Z",
"deprovisioning_due_at": "2023-11-07T05:31:56Z",
"deprovisioning_started_at": "2023-11-07T05:31:56Z",
"deprovisioning_completed_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"decision": {
"uid": "<string>",
"state": "approved",
"approver": "<string>",
"request": "<string>",
"subject": {
"action": "<string>",
"equipment_uid": "<string>",
"device": "<string>",
"serial_number": "<string>",
"model": "<string>",
"holder_uid": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>",
"troubleshoot": "<string>"
}{
"error": "<string>",
"troubleshoot": "<string>"
}{
"error": "<string>",
"troubleshoot": "<string>",
"code": "decision_not_yet_delivered"
}{
"error": "<string>",
"troubleshoot": "<string>",
"code": "decision_not_yet_delivered"
}Authorizations
Query Parameters
Approve an App Access Request
curl --request PUT \
--url https://api.siit.io/v1/app_access/requests/{uid}/approve \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.siit.io/v1/app_access/requests/{uid}/approve"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.siit.io/v1/app_access/requests/{uid}/approve', 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://api.siit.io/v1/app_access/requests/{uid}/approve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.siit.io/v1/app_access/requests/{uid}/approve"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.siit.io/v1/app_access/requests/{uid}/approve")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.siit.io/v1/app_access/requests/{uid}/approve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"result": {
"uid": "<string>",
"status": "cancelled",
"can_approve": true,
"application": "<string>",
"role": "<string>",
"app_access_role_uid": "<string>",
"app_access_role_name": "<string>",
"request": "<string>",
"requester": "<string>",
"initiator": "<string>",
"approvals": [
"<string>"
],
"business_reason_markdown": "<string>",
"duration_minutes": 123,
"duration_unit": "days",
"failure_reason": "<string>",
"failure_reason_key": "<string>",
"submitted_at": "2023-11-07T05:31:56Z",
"rejected_at": "2023-11-07T05:31:56Z",
"cancelled_at": "2023-11-07T05:31:56Z",
"expired_at": "2023-11-07T05:31:56Z",
"failed_at": "2023-11-07T05:31:56Z",
"provisioning_started_at": "2023-11-07T05:31:56Z",
"provisioning_completed_at": "2023-11-07T05:31:56Z",
"deprovisioning_due_at": "2023-11-07T05:31:56Z",
"deprovisioning_started_at": "2023-11-07T05:31:56Z",
"deprovisioning_completed_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"decision": {
"uid": "<string>",
"state": "approved",
"approver": "<string>",
"request": "<string>",
"subject": {
"action": "<string>",
"equipment_uid": "<string>",
"device": "<string>",
"serial_number": "<string>",
"model": "<string>",
"holder_uid": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>",
"troubleshoot": "<string>"
}{
"error": "<string>",
"troubleshoot": "<string>"
}{
"error": "<string>",
"troubleshoot": "<string>",
"code": "decision_not_yet_delivered"
}{
"error": "<string>",
"troubleshoot": "<string>",
"code": "decision_not_yet_delivered"
}
