Search decisions
curl --request POST \
--url https://staging.api.us.aptlydone.com/decision/v1/decisions/global-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tenantId": "105fa115-52d0-4466-baff-740447a60774",
"ids": null,
"status": "DRAFT,ARCHIVED",
"search": "Investmen",
"section": null,
"category": null,
"groupIds": null,
"delegable": true,
"delegations": true,
"authorityTypeIds": null,
"authorityLimitValueTypes": "Days,Months,Years",
"authorityLimitValueFilters": [
{
"authorityLimitValueType": "Years",
"minValue": "1",
"maxValue": "Unlimited"
}
],
"owner": null,
"createdStartDate": "2025-03-05T11:49:50.577Z",
"createdEndDate": "2025-03-05T11:49:50.577Z",
"updatedStartDate": "2025-03-05T11:49:50.577Z",
"updatedEndDate": "2025-03-05T11:49:50.577Z",
"startDate": "2025-03-05T11:49:50.577Z",
"endDate": "2025-03-05T11:49:50.577Z",
"selectedTab": "active",
"sortBy": "name",
"sortOrder": "asc",
"select": "DECISION_ID,NAME,DECISION_DISPLAY_ID",
"issuerType": "ROOT_AUTHORITY",
"page": 1,
"limit": 10
}
'import requests
url = "https://staging.api.us.aptlydone.com/decision/v1/decisions/global-search"
payload = {
"tenantId": "105fa115-52d0-4466-baff-740447a60774",
"ids": None,
"status": "DRAFT,ARCHIVED",
"search": "Investmen",
"section": None,
"category": None,
"groupIds": None,
"delegable": True,
"delegations": True,
"authorityTypeIds": None,
"authorityLimitValueTypes": "Days,Months,Years",
"authorityLimitValueFilters": [
{
"authorityLimitValueType": "Years",
"minValue": "1",
"maxValue": "Unlimited"
}
],
"owner": None,
"createdStartDate": "2025-03-05T11:49:50.577Z",
"createdEndDate": "2025-03-05T11:49:50.577Z",
"updatedStartDate": "2025-03-05T11:49:50.577Z",
"updatedEndDate": "2025-03-05T11:49:50.577Z",
"startDate": "2025-03-05T11:49:50.577Z",
"endDate": "2025-03-05T11:49:50.577Z",
"selectedTab": "active",
"sortBy": "name",
"sortOrder": "asc",
"select": "DECISION_ID,NAME,DECISION_DISPLAY_ID",
"issuerType": "ROOT_AUTHORITY",
"page": 1,
"limit": 10
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tenantId: '105fa115-52d0-4466-baff-740447a60774',
ids: null,
status: 'DRAFT,ARCHIVED',
search: 'Investmen',
section: null,
category: null,
groupIds: null,
delegable: true,
delegations: true,
authorityTypeIds: null,
authorityLimitValueTypes: 'Days,Months,Years',
authorityLimitValueFilters: [{authorityLimitValueType: 'Years', minValue: '1', maxValue: 'Unlimited'}],
owner: null,
createdStartDate: '2025-03-05T11:49:50.577Z',
createdEndDate: '2025-03-05T11:49:50.577Z',
updatedStartDate: '2025-03-05T11:49:50.577Z',
updatedEndDate: '2025-03-05T11:49:50.577Z',
startDate: '2025-03-05T11:49:50.577Z',
endDate: '2025-03-05T11:49:50.577Z',
selectedTab: 'active',
sortBy: 'name',
sortOrder: 'asc',
select: 'DECISION_ID,NAME,DECISION_DISPLAY_ID',
issuerType: 'ROOT_AUTHORITY',
page: 1,
limit: 10
})
};
fetch('https://staging.api.us.aptlydone.com/decision/v1/decisions/global-search', 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://staging.api.us.aptlydone.com/decision/v1/decisions/global-search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tenantId' => '105fa115-52d0-4466-baff-740447a60774',
'ids' => null,
'status' => 'DRAFT,ARCHIVED',
'search' => 'Investmen',
'section' => null,
'category' => null,
'groupIds' => null,
'delegable' => true,
'delegations' => true,
'authorityTypeIds' => null,
'authorityLimitValueTypes' => 'Days,Months,Years',
'authorityLimitValueFilters' => [
[
'authorityLimitValueType' => 'Years',
'minValue' => '1',
'maxValue' => 'Unlimited'
]
],
'owner' => null,
'createdStartDate' => '2025-03-05T11:49:50.577Z',
'createdEndDate' => '2025-03-05T11:49:50.577Z',
'updatedStartDate' => '2025-03-05T11:49:50.577Z',
'updatedEndDate' => '2025-03-05T11:49:50.577Z',
'startDate' => '2025-03-05T11:49:50.577Z',
'endDate' => '2025-03-05T11:49:50.577Z',
'selectedTab' => 'active',
'sortBy' => 'name',
'sortOrder' => 'asc',
'select' => 'DECISION_ID,NAME,DECISION_DISPLAY_ID',
'issuerType' => 'ROOT_AUTHORITY',
'page' => 1,
'limit' => 10
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://staging.api.us.aptlydone.com/decision/v1/decisions/global-search"
payload := strings.NewReader("{\n \"tenantId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"ids\": null,\n \"status\": \"DRAFT,ARCHIVED\",\n \"search\": \"Investmen\",\n \"section\": null,\n \"category\": null,\n \"groupIds\": null,\n \"delegable\": true,\n \"delegations\": true,\n \"authorityTypeIds\": null,\n \"authorityLimitValueTypes\": \"Days,Months,Years\",\n \"authorityLimitValueFilters\": [\n {\n \"authorityLimitValueType\": \"Years\",\n \"minValue\": \"1\",\n \"maxValue\": \"Unlimited\"\n }\n ],\n \"owner\": null,\n \"createdStartDate\": \"2025-03-05T11:49:50.577Z\",\n \"createdEndDate\": \"2025-03-05T11:49:50.577Z\",\n \"updatedStartDate\": \"2025-03-05T11:49:50.577Z\",\n \"updatedEndDate\": \"2025-03-05T11:49:50.577Z\",\n \"startDate\": \"2025-03-05T11:49:50.577Z\",\n \"endDate\": \"2025-03-05T11:49:50.577Z\",\n \"selectedTab\": \"active\",\n \"sortBy\": \"name\",\n \"sortOrder\": \"asc\",\n \"select\": \"DECISION_ID,NAME,DECISION_DISPLAY_ID\",\n \"issuerType\": \"ROOT_AUTHORITY\",\n \"page\": 1,\n \"limit\": 10\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://staging.api.us.aptlydone.com/decision/v1/decisions/global-search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tenantId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"ids\": null,\n \"status\": \"DRAFT,ARCHIVED\",\n \"search\": \"Investmen\",\n \"section\": null,\n \"category\": null,\n \"groupIds\": null,\n \"delegable\": true,\n \"delegations\": true,\n \"authorityTypeIds\": null,\n \"authorityLimitValueTypes\": \"Days,Months,Years\",\n \"authorityLimitValueFilters\": [\n {\n \"authorityLimitValueType\": \"Years\",\n \"minValue\": \"1\",\n \"maxValue\": \"Unlimited\"\n }\n ],\n \"owner\": null,\n \"createdStartDate\": \"2025-03-05T11:49:50.577Z\",\n \"createdEndDate\": \"2025-03-05T11:49:50.577Z\",\n \"updatedStartDate\": \"2025-03-05T11:49:50.577Z\",\n \"updatedEndDate\": \"2025-03-05T11:49:50.577Z\",\n \"startDate\": \"2025-03-05T11:49:50.577Z\",\n \"endDate\": \"2025-03-05T11:49:50.577Z\",\n \"selectedTab\": \"active\",\n \"sortBy\": \"name\",\n \"sortOrder\": \"asc\",\n \"select\": \"DECISION_ID,NAME,DECISION_DISPLAY_ID\",\n \"issuerType\": \"ROOT_AUTHORITY\",\n \"page\": 1,\n \"limit\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.api.us.aptlydone.com/decision/v1/decisions/global-search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tenantId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"ids\": null,\n \"status\": \"DRAFT,ARCHIVED\",\n \"search\": \"Investmen\",\n \"section\": null,\n \"category\": null,\n \"groupIds\": null,\n \"delegable\": true,\n \"delegations\": true,\n \"authorityTypeIds\": null,\n \"authorityLimitValueTypes\": \"Days,Months,Years\",\n \"authorityLimitValueFilters\": [\n {\n \"authorityLimitValueType\": \"Years\",\n \"minValue\": \"1\",\n \"maxValue\": \"Unlimited\"\n }\n ],\n \"owner\": null,\n \"createdStartDate\": \"2025-03-05T11:49:50.577Z\",\n \"createdEndDate\": \"2025-03-05T11:49:50.577Z\",\n \"updatedStartDate\": \"2025-03-05T11:49:50.577Z\",\n \"updatedEndDate\": \"2025-03-05T11:49:50.577Z\",\n \"startDate\": \"2025-03-05T11:49:50.577Z\",\n \"endDate\": \"2025-03-05T11:49:50.577Z\",\n \"selectedTab\": \"active\",\n \"sortBy\": \"name\",\n \"sortOrder\": \"asc\",\n \"select\": \"DECISION_ID,NAME,DECISION_DISPLAY_ID\",\n \"issuerType\": \"ROOT_AUTHORITY\",\n \"page\": 1,\n \"limit\": 10\n}"
response = http.request(request)
puts response.read_body{
"statusCode": 200,
"timestamp": "2026-01-08T06:33:50.975Z",
"message": "Success",
"data": {
"page": 1,
"limit": 10,
"total": 100,
"data": [
{
"id": "7df90da4-0634-40b9-abf5-6e97a222cfb8",
"tenantId": "105fa115-52d0-4466-baff-740447a60774",
"name": "Long-term Investments",
"description": "The Long-term Investments authority involves approving strategic investments, including equity stakes, acquisitions, and other business ventures.",
"guidance": "Investment decisions for long-term, strategic investments, such as acquisitions and equity stakes, require a structured process that ensures alignment with corporate strategy, rigorous financial analysis, risk assessment, and strong governance. These investments should enhance the company's competitive positioning, growth potential, and long-term vision. Financial modeling is critical, incorporating valuation methods, cash flow impacts, and sensitivity analysis to forecast returns under different scenarios.",
"sectionId": "105fa115-52d0-4466-baff-740447a60774",
"categoryId": "105fa115-52d0-4466-baff-740447a60774",
"status": "PUBLISHED",
"createdBy": null,
"owner": null,
"createdAt": "2024-12-18T09:50:43.338Z",
"updatedBy": null,
"updatedAt": "2024-12-18T09:50:43.338Z",
"copiedFrom": null,
"conditionEnabled": false,
"roleEnabled": false,
"delegable": true,
"decisionDisplayId": "14623",
"delegationPathway": [
"Matrix",
"Direct Line",
"Functional"
],
"link": "/decisions/view/eyJ0ZW5hbnRJZCI6MSwiZGVjaXNpb25JZCI6ImU4YTEzYmQ0LTExYzItNDNkMi1hM2RjLWUxOGQ2ODU1NTU4OCJ9",
"decisionId": "7df90da4-0634-40b9-abf5-6e97a222cfb8",
"sectionName": "Financial Authority",
"categoryName": "Budget Approval",
"createdByUsername": "John Doe",
"ownerUsername": "John Doe",
"updatedByUsername": null,
"decisionGroups": [
{
"id": "7df90da4-0634-40b9-abf5-6e97a222cfb8",
"denormalizedDecisionId": "7df90da4-0634-40b9-abf5-6e97a222cfb8",
"groupId": "105fa115-52d0-4466-baff-740447a60774",
"tenantGroupTypeId": "105fa115-52d0-4466-baff-740447a60774",
"displayName": "Engineering Team",
"groupName": "Engineering Team"
}
],
"decisionAuthorities": [
{
"id": "7df90da4-0634-40b9-abf5-6e97a222cfb8",
"denormalizedDecisionId": "7df90da4-0634-40b9-abf5-6e97a222cfb8",
"authorityTypeId": "105fa115-52d0-4466-baff-740447a60774",
"authorityType": "Approval",
"authorityTypeOrder": 1,
"authorityTypeIcon": "check-square",
"authorityLimit": "Primary",
"authorityLimitValueType": "Currency",
"authorityLimitOperator": "<",
"authorityLimitValue": "1000",
"authorityLimitValueUnit": "$",
"authorityThresholdValue": "50000",
"authorityThresholdOperator": ">="
}
],
"decisionDocuments": [
{
"id": "7df90da4-0634-40b9-abf5-6e97a222cfb8",
"denormalizedDecisionId": "7df90da4-0634-40b9-abf5-6e97a222cfb8",
"documentId": "105fa115-52d0-4466-baff-740447a60774",
"documentName": "Proxy Comm Delegation of Authority Policy",
"documentUrl": "https://filesamples.com/samples/document/pdf/sample1.pdf",
"documentTypeName": "Policy",
"documentIcon": "file_text_outlined",
"documentDescription": "Defines the framework for delegating authority across ProxyComm's global operations, outlining roles, responsibilities, and decision-making limits to ensure compliance, accountability, and operational consistency.",
"documentFileType": "pdf",
"isPinned": true,
"documentDisplayId": "10000",
"documentStatus": "PUBLISHED",
"documentFileLink": "https://example.com/files/project_document.pdf"
}
],
"delegations": 0,
"ownerUserProfileUrl": "http://test.jpg",
"createdByUserProfileUrl": "http://test.jpg",
"updatedByUserProfileUrl": "http://test.jpg",
"permissions": [
{
"relationship_key": "<string>",
"allowed": true
}
],
"createdByDetails": {},
"updatedByDetails": {},
"ownerDetails": {},
"isRequestActionCompleted": true
}
]
}
}{}Decisions
Search decisions
Search decisions in an Aptly tenant using a request body. Filter by status, section, category, groups, delegability, keyword and authority limits.
POST
/
v1
/
decisions
/
global-search
Search decisions
curl --request POST \
--url https://staging.api.us.aptlydone.com/decision/v1/decisions/global-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tenantId": "105fa115-52d0-4466-baff-740447a60774",
"ids": null,
"status": "DRAFT,ARCHIVED",
"search": "Investmen",
"section": null,
"category": null,
"groupIds": null,
"delegable": true,
"delegations": true,
"authorityTypeIds": null,
"authorityLimitValueTypes": "Days,Months,Years",
"authorityLimitValueFilters": [
{
"authorityLimitValueType": "Years",
"minValue": "1",
"maxValue": "Unlimited"
}
],
"owner": null,
"createdStartDate": "2025-03-05T11:49:50.577Z",
"createdEndDate": "2025-03-05T11:49:50.577Z",
"updatedStartDate": "2025-03-05T11:49:50.577Z",
"updatedEndDate": "2025-03-05T11:49:50.577Z",
"startDate": "2025-03-05T11:49:50.577Z",
"endDate": "2025-03-05T11:49:50.577Z",
"selectedTab": "active",
"sortBy": "name",
"sortOrder": "asc",
"select": "DECISION_ID,NAME,DECISION_DISPLAY_ID",
"issuerType": "ROOT_AUTHORITY",
"page": 1,
"limit": 10
}
'import requests
url = "https://staging.api.us.aptlydone.com/decision/v1/decisions/global-search"
payload = {
"tenantId": "105fa115-52d0-4466-baff-740447a60774",
"ids": None,
"status": "DRAFT,ARCHIVED",
"search": "Investmen",
"section": None,
"category": None,
"groupIds": None,
"delegable": True,
"delegations": True,
"authorityTypeIds": None,
"authorityLimitValueTypes": "Days,Months,Years",
"authorityLimitValueFilters": [
{
"authorityLimitValueType": "Years",
"minValue": "1",
"maxValue": "Unlimited"
}
],
"owner": None,
"createdStartDate": "2025-03-05T11:49:50.577Z",
"createdEndDate": "2025-03-05T11:49:50.577Z",
"updatedStartDate": "2025-03-05T11:49:50.577Z",
"updatedEndDate": "2025-03-05T11:49:50.577Z",
"startDate": "2025-03-05T11:49:50.577Z",
"endDate": "2025-03-05T11:49:50.577Z",
"selectedTab": "active",
"sortBy": "name",
"sortOrder": "asc",
"select": "DECISION_ID,NAME,DECISION_DISPLAY_ID",
"issuerType": "ROOT_AUTHORITY",
"page": 1,
"limit": 10
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tenantId: '105fa115-52d0-4466-baff-740447a60774',
ids: null,
status: 'DRAFT,ARCHIVED',
search: 'Investmen',
section: null,
category: null,
groupIds: null,
delegable: true,
delegations: true,
authorityTypeIds: null,
authorityLimitValueTypes: 'Days,Months,Years',
authorityLimitValueFilters: [{authorityLimitValueType: 'Years', minValue: '1', maxValue: 'Unlimited'}],
owner: null,
createdStartDate: '2025-03-05T11:49:50.577Z',
createdEndDate: '2025-03-05T11:49:50.577Z',
updatedStartDate: '2025-03-05T11:49:50.577Z',
updatedEndDate: '2025-03-05T11:49:50.577Z',
startDate: '2025-03-05T11:49:50.577Z',
endDate: '2025-03-05T11:49:50.577Z',
selectedTab: 'active',
sortBy: 'name',
sortOrder: 'asc',
select: 'DECISION_ID,NAME,DECISION_DISPLAY_ID',
issuerType: 'ROOT_AUTHORITY',
page: 1,
limit: 10
})
};
fetch('https://staging.api.us.aptlydone.com/decision/v1/decisions/global-search', 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://staging.api.us.aptlydone.com/decision/v1/decisions/global-search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tenantId' => '105fa115-52d0-4466-baff-740447a60774',
'ids' => null,
'status' => 'DRAFT,ARCHIVED',
'search' => 'Investmen',
'section' => null,
'category' => null,
'groupIds' => null,
'delegable' => true,
'delegations' => true,
'authorityTypeIds' => null,
'authorityLimitValueTypes' => 'Days,Months,Years',
'authorityLimitValueFilters' => [
[
'authorityLimitValueType' => 'Years',
'minValue' => '1',
'maxValue' => 'Unlimited'
]
],
'owner' => null,
'createdStartDate' => '2025-03-05T11:49:50.577Z',
'createdEndDate' => '2025-03-05T11:49:50.577Z',
'updatedStartDate' => '2025-03-05T11:49:50.577Z',
'updatedEndDate' => '2025-03-05T11:49:50.577Z',
'startDate' => '2025-03-05T11:49:50.577Z',
'endDate' => '2025-03-05T11:49:50.577Z',
'selectedTab' => 'active',
'sortBy' => 'name',
'sortOrder' => 'asc',
'select' => 'DECISION_ID,NAME,DECISION_DISPLAY_ID',
'issuerType' => 'ROOT_AUTHORITY',
'page' => 1,
'limit' => 10
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://staging.api.us.aptlydone.com/decision/v1/decisions/global-search"
payload := strings.NewReader("{\n \"tenantId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"ids\": null,\n \"status\": \"DRAFT,ARCHIVED\",\n \"search\": \"Investmen\",\n \"section\": null,\n \"category\": null,\n \"groupIds\": null,\n \"delegable\": true,\n \"delegations\": true,\n \"authorityTypeIds\": null,\n \"authorityLimitValueTypes\": \"Days,Months,Years\",\n \"authorityLimitValueFilters\": [\n {\n \"authorityLimitValueType\": \"Years\",\n \"minValue\": \"1\",\n \"maxValue\": \"Unlimited\"\n }\n ],\n \"owner\": null,\n \"createdStartDate\": \"2025-03-05T11:49:50.577Z\",\n \"createdEndDate\": \"2025-03-05T11:49:50.577Z\",\n \"updatedStartDate\": \"2025-03-05T11:49:50.577Z\",\n \"updatedEndDate\": \"2025-03-05T11:49:50.577Z\",\n \"startDate\": \"2025-03-05T11:49:50.577Z\",\n \"endDate\": \"2025-03-05T11:49:50.577Z\",\n \"selectedTab\": \"active\",\n \"sortBy\": \"name\",\n \"sortOrder\": \"asc\",\n \"select\": \"DECISION_ID,NAME,DECISION_DISPLAY_ID\",\n \"issuerType\": \"ROOT_AUTHORITY\",\n \"page\": 1,\n \"limit\": 10\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://staging.api.us.aptlydone.com/decision/v1/decisions/global-search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tenantId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"ids\": null,\n \"status\": \"DRAFT,ARCHIVED\",\n \"search\": \"Investmen\",\n \"section\": null,\n \"category\": null,\n \"groupIds\": null,\n \"delegable\": true,\n \"delegations\": true,\n \"authorityTypeIds\": null,\n \"authorityLimitValueTypes\": \"Days,Months,Years\",\n \"authorityLimitValueFilters\": [\n {\n \"authorityLimitValueType\": \"Years\",\n \"minValue\": \"1\",\n \"maxValue\": \"Unlimited\"\n }\n ],\n \"owner\": null,\n \"createdStartDate\": \"2025-03-05T11:49:50.577Z\",\n \"createdEndDate\": \"2025-03-05T11:49:50.577Z\",\n \"updatedStartDate\": \"2025-03-05T11:49:50.577Z\",\n \"updatedEndDate\": \"2025-03-05T11:49:50.577Z\",\n \"startDate\": \"2025-03-05T11:49:50.577Z\",\n \"endDate\": \"2025-03-05T11:49:50.577Z\",\n \"selectedTab\": \"active\",\n \"sortBy\": \"name\",\n \"sortOrder\": \"asc\",\n \"select\": \"DECISION_ID,NAME,DECISION_DISPLAY_ID\",\n \"issuerType\": \"ROOT_AUTHORITY\",\n \"page\": 1,\n \"limit\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.api.us.aptlydone.com/decision/v1/decisions/global-search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tenantId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"ids\": null,\n \"status\": \"DRAFT,ARCHIVED\",\n \"search\": \"Investmen\",\n \"section\": null,\n \"category\": null,\n \"groupIds\": null,\n \"delegable\": true,\n \"delegations\": true,\n \"authorityTypeIds\": null,\n \"authorityLimitValueTypes\": \"Days,Months,Years\",\n \"authorityLimitValueFilters\": [\n {\n \"authorityLimitValueType\": \"Years\",\n \"minValue\": \"1\",\n \"maxValue\": \"Unlimited\"\n }\n ],\n \"owner\": null,\n \"createdStartDate\": \"2025-03-05T11:49:50.577Z\",\n \"createdEndDate\": \"2025-03-05T11:49:50.577Z\",\n \"updatedStartDate\": \"2025-03-05T11:49:50.577Z\",\n \"updatedEndDate\": \"2025-03-05T11:49:50.577Z\",\n \"startDate\": \"2025-03-05T11:49:50.577Z\",\n \"endDate\": \"2025-03-05T11:49:50.577Z\",\n \"selectedTab\": \"active\",\n \"sortBy\": \"name\",\n \"sortOrder\": \"asc\",\n \"select\": \"DECISION_ID,NAME,DECISION_DISPLAY_ID\",\n \"issuerType\": \"ROOT_AUTHORITY\",\n \"page\": 1,\n \"limit\": 10\n}"
response = http.request(request)
puts response.read_body{
"statusCode": 200,
"timestamp": "2026-01-08T06:33:50.975Z",
"message": "Success",
"data": {
"page": 1,
"limit": 10,
"total": 100,
"data": [
{
"id": "7df90da4-0634-40b9-abf5-6e97a222cfb8",
"tenantId": "105fa115-52d0-4466-baff-740447a60774",
"name": "Long-term Investments",
"description": "The Long-term Investments authority involves approving strategic investments, including equity stakes, acquisitions, and other business ventures.",
"guidance": "Investment decisions for long-term, strategic investments, such as acquisitions and equity stakes, require a structured process that ensures alignment with corporate strategy, rigorous financial analysis, risk assessment, and strong governance. These investments should enhance the company's competitive positioning, growth potential, and long-term vision. Financial modeling is critical, incorporating valuation methods, cash flow impacts, and sensitivity analysis to forecast returns under different scenarios.",
"sectionId": "105fa115-52d0-4466-baff-740447a60774",
"categoryId": "105fa115-52d0-4466-baff-740447a60774",
"status": "PUBLISHED",
"createdBy": null,
"owner": null,
"createdAt": "2024-12-18T09:50:43.338Z",
"updatedBy": null,
"updatedAt": "2024-12-18T09:50:43.338Z",
"copiedFrom": null,
"conditionEnabled": false,
"roleEnabled": false,
"delegable": true,
"decisionDisplayId": "14623",
"delegationPathway": [
"Matrix",
"Direct Line",
"Functional"
],
"link": "/decisions/view/eyJ0ZW5hbnRJZCI6MSwiZGVjaXNpb25JZCI6ImU4YTEzYmQ0LTExYzItNDNkMi1hM2RjLWUxOGQ2ODU1NTU4OCJ9",
"decisionId": "7df90da4-0634-40b9-abf5-6e97a222cfb8",
"sectionName": "Financial Authority",
"categoryName": "Budget Approval",
"createdByUsername": "John Doe",
"ownerUsername": "John Doe",
"updatedByUsername": null,
"decisionGroups": [
{
"id": "7df90da4-0634-40b9-abf5-6e97a222cfb8",
"denormalizedDecisionId": "7df90da4-0634-40b9-abf5-6e97a222cfb8",
"groupId": "105fa115-52d0-4466-baff-740447a60774",
"tenantGroupTypeId": "105fa115-52d0-4466-baff-740447a60774",
"displayName": "Engineering Team",
"groupName": "Engineering Team"
}
],
"decisionAuthorities": [
{
"id": "7df90da4-0634-40b9-abf5-6e97a222cfb8",
"denormalizedDecisionId": "7df90da4-0634-40b9-abf5-6e97a222cfb8",
"authorityTypeId": "105fa115-52d0-4466-baff-740447a60774",
"authorityType": "Approval",
"authorityTypeOrder": 1,
"authorityTypeIcon": "check-square",
"authorityLimit": "Primary",
"authorityLimitValueType": "Currency",
"authorityLimitOperator": "<",
"authorityLimitValue": "1000",
"authorityLimitValueUnit": "$",
"authorityThresholdValue": "50000",
"authorityThresholdOperator": ">="
}
],
"decisionDocuments": [
{
"id": "7df90da4-0634-40b9-abf5-6e97a222cfb8",
"denormalizedDecisionId": "7df90da4-0634-40b9-abf5-6e97a222cfb8",
"documentId": "105fa115-52d0-4466-baff-740447a60774",
"documentName": "Proxy Comm Delegation of Authority Policy",
"documentUrl": "https://filesamples.com/samples/document/pdf/sample1.pdf",
"documentTypeName": "Policy",
"documentIcon": "file_text_outlined",
"documentDescription": "Defines the framework for delegating authority across ProxyComm's global operations, outlining roles, responsibilities, and decision-making limits to ensure compliance, accountability, and operational consistency.",
"documentFileType": "pdf",
"isPinned": true,
"documentDisplayId": "10000",
"documentStatus": "PUBLISHED",
"documentFileLink": "https://example.com/files/project_document.pdf"
}
],
"delegations": 0,
"ownerUserProfileUrl": "http://test.jpg",
"createdByUserProfileUrl": "http://test.jpg",
"updatedByUserProfileUrl": "http://test.jpg",
"permissions": [
{
"relationship_key": "<string>",
"allowed": true
}
],
"createdByDetails": {},
"updatedByDetails": {},
"ownerDetails": {},
"isRequestActionCompleted": true
}
]
}
}{}Authorizations
Body
application/json
Was this page helpful?