Update decision
curl --request PATCH \
--url https://staging.api.us.aptlydone.com/decision/v1/decisions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"sectionId": "105fa115-52d0-4466-baff-740447a60774",
"sectionName": "Financial Authority",
"status": "PUBLISHED",
"updatedBy": "105fa115-52d0-4466-baff-740447a60774",
"updatedByUsername": "John Doe",
"delegable": false,
"name": "Long-term Investments",
"description": "The Long-term Investments authority involves approving strategic investments",
"guidance": "Investment decisions for long-term, strategic investments...",
"categoryId": "105fa115-52d0-4466-baff-740447a60774",
"categoryName": "Budget Approval",
"owner": "105fa115-52d0-4466-baff-740447a60774",
"ownerUsername": "John Doe",
"conditionEnabled": false,
"roleEnabled": false,
"delegationPathway": [
"Matrix",
"Direct Line",
"Functional"
],
"decisionGroups": [
{
"groupId": "105fa115-52d0-4466-baff-740447a60774",
"tenantGroupTypeId": "105fa115-52d0-4466-baff-740447a60774",
"displayName": "Engineering Team",
"groupName": "Engineering Team"
}
],
"decisionAuthorities": [
{
"authorityTypeId": "105fa115-52d0-4466-baff-740447a60774",
"authorityType": "Approval",
"authorityLimit": "Primary",
"authorityLimitValueType": "Currency",
"authorityLimitOperator": "<=",
"authorityTypeOrder": 1,
"authorityTypeIcon": "check-square",
"authorityLimitValue": "1000000",
"authorityLimitValueUnit": "$",
"authorityThresholdValue": "50000",
"authorityThresholdOperator": ">="
}
],
"decisionDocuments": [
{
"documentId": "105fa115-52d0-4466-baff-740447a60774",
"documentName": "Proxy Comm Delegation of Authority 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.",
"isPinned": true,
"documentDisplayId": "10000",
"documentStatus": "PUBLISHED",
"documentUrl": "https://filesamples.com/samples/document/pdf/sample1.pdf",
"documentTypeName": "Policy",
"documentFileType": "pdf",
"documentFileLink": "https://example.com/files/project_document.pdf"
}
]
}
EOFimport requests
url = "https://staging.api.us.aptlydone.com/decision/v1/decisions/{id}"
payload = {
"sectionId": "105fa115-52d0-4466-baff-740447a60774",
"sectionName": "Financial Authority",
"status": "PUBLISHED",
"updatedBy": "105fa115-52d0-4466-baff-740447a60774",
"updatedByUsername": "John Doe",
"delegable": False,
"name": "Long-term Investments",
"description": "The Long-term Investments authority involves approving strategic investments",
"guidance": "Investment decisions for long-term, strategic investments...",
"categoryId": "105fa115-52d0-4466-baff-740447a60774",
"categoryName": "Budget Approval",
"owner": "105fa115-52d0-4466-baff-740447a60774",
"ownerUsername": "John Doe",
"conditionEnabled": False,
"roleEnabled": False,
"delegationPathway": ["Matrix", "Direct Line", "Functional"],
"decisionGroups": [
{
"groupId": "105fa115-52d0-4466-baff-740447a60774",
"tenantGroupTypeId": "105fa115-52d0-4466-baff-740447a60774",
"displayName": "Engineering Team",
"groupName": "Engineering Team"
}
],
"decisionAuthorities": [
{
"authorityTypeId": "105fa115-52d0-4466-baff-740447a60774",
"authorityType": "Approval",
"authorityLimit": "Primary",
"authorityLimitValueType": "Currency",
"authorityLimitOperator": "<=",
"authorityTypeOrder": 1,
"authorityTypeIcon": "check-square",
"authorityLimitValue": "1000000",
"authorityLimitValueUnit": "$",
"authorityThresholdValue": "50000",
"authorityThresholdOperator": ">="
}
],
"decisionDocuments": [
{
"documentId": "105fa115-52d0-4466-baff-740447a60774",
"documentName": "Proxy Comm Delegation of Authority 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.",
"isPinned": True,
"documentDisplayId": "10000",
"documentStatus": "PUBLISHED",
"documentUrl": "https://filesamples.com/samples/document/pdf/sample1.pdf",
"documentTypeName": "Policy",
"documentFileType": "pdf",
"documentFileLink": "https://example.com/files/project_document.pdf"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
sectionId: '105fa115-52d0-4466-baff-740447a60774',
sectionName: 'Financial Authority',
status: 'PUBLISHED',
updatedBy: '105fa115-52d0-4466-baff-740447a60774',
updatedByUsername: 'John Doe',
delegable: false,
name: 'Long-term Investments',
description: 'The Long-term Investments authority involves approving strategic investments',
guidance: 'Investment decisions for long-term, strategic investments...',
categoryId: '105fa115-52d0-4466-baff-740447a60774',
categoryName: 'Budget Approval',
owner: '105fa115-52d0-4466-baff-740447a60774',
ownerUsername: 'John Doe',
conditionEnabled: false,
roleEnabled: false,
delegationPathway: ['Matrix', 'Direct Line', 'Functional'],
decisionGroups: [
{
groupId: '105fa115-52d0-4466-baff-740447a60774',
tenantGroupTypeId: '105fa115-52d0-4466-baff-740447a60774',
displayName: 'Engineering Team',
groupName: 'Engineering Team'
}
],
decisionAuthorities: [
{
authorityTypeId: '105fa115-52d0-4466-baff-740447a60774',
authorityType: 'Approval',
authorityLimit: 'Primary',
authorityLimitValueType: 'Currency',
authorityLimitOperator: '<=',
authorityTypeOrder: 1,
authorityTypeIcon: 'check-square',
authorityLimitValue: '1000000',
authorityLimitValueUnit: '$',
authorityThresholdValue: '50000',
authorityThresholdOperator: '>='
}
],
decisionDocuments: [
{
documentId: '105fa115-52d0-4466-baff-740447a60774',
documentName: 'Proxy Comm Delegation of Authority 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.',
isPinned: true,
documentDisplayId: '10000',
documentStatus: 'PUBLISHED',
documentUrl: 'https://filesamples.com/samples/document/pdf/sample1.pdf',
documentTypeName: 'Policy',
documentFileType: 'pdf',
documentFileLink: 'https://example.com/files/project_document.pdf'
}
]
})
};
fetch('https://staging.api.us.aptlydone.com/decision/v1/decisions/{id}', 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/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'sectionId' => '105fa115-52d0-4466-baff-740447a60774',
'sectionName' => 'Financial Authority',
'status' => 'PUBLISHED',
'updatedBy' => '105fa115-52d0-4466-baff-740447a60774',
'updatedByUsername' => 'John Doe',
'delegable' => false,
'name' => 'Long-term Investments',
'description' => 'The Long-term Investments authority involves approving strategic investments',
'guidance' => 'Investment decisions for long-term, strategic investments...',
'categoryId' => '105fa115-52d0-4466-baff-740447a60774',
'categoryName' => 'Budget Approval',
'owner' => '105fa115-52d0-4466-baff-740447a60774',
'ownerUsername' => 'John Doe',
'conditionEnabled' => false,
'roleEnabled' => false,
'delegationPathway' => [
'Matrix',
'Direct Line',
'Functional'
],
'decisionGroups' => [
[
'groupId' => '105fa115-52d0-4466-baff-740447a60774',
'tenantGroupTypeId' => '105fa115-52d0-4466-baff-740447a60774',
'displayName' => 'Engineering Team',
'groupName' => 'Engineering Team'
]
],
'decisionAuthorities' => [
[
'authorityTypeId' => '105fa115-52d0-4466-baff-740447a60774',
'authorityType' => 'Approval',
'authorityLimit' => 'Primary',
'authorityLimitValueType' => 'Currency',
'authorityLimitOperator' => '<=',
'authorityTypeOrder' => 1,
'authorityTypeIcon' => 'check-square',
'authorityLimitValue' => '1000000',
'authorityLimitValueUnit' => '$',
'authorityThresholdValue' => '50000',
'authorityThresholdOperator' => '>='
]
],
'decisionDocuments' => [
[
'documentId' => '105fa115-52d0-4466-baff-740447a60774',
'documentName' => 'Proxy Comm Delegation of Authority 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.',
'isPinned' => true,
'documentDisplayId' => '10000',
'documentStatus' => 'PUBLISHED',
'documentUrl' => 'https://filesamples.com/samples/document/pdf/sample1.pdf',
'documentTypeName' => 'Policy',
'documentFileType' => 'pdf',
'documentFileLink' => 'https://example.com/files/project_document.pdf'
]
]
]),
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/{id}"
payload := strings.NewReader("{\n \"sectionId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"sectionName\": \"Financial Authority\",\n \"status\": \"PUBLISHED\",\n \"updatedBy\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"updatedByUsername\": \"John Doe\",\n \"delegable\": false,\n \"name\": \"Long-term Investments\",\n \"description\": \"The Long-term Investments authority involves approving strategic investments\",\n \"guidance\": \"Investment decisions for long-term, strategic investments...\",\n \"categoryId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"categoryName\": \"Budget Approval\",\n \"owner\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"ownerUsername\": \"John Doe\",\n \"conditionEnabled\": false,\n \"roleEnabled\": false,\n \"delegationPathway\": [\n \"Matrix\",\n \"Direct Line\",\n \"Functional\"\n ],\n \"decisionGroups\": [\n {\n \"groupId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"tenantGroupTypeId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"displayName\": \"Engineering Team\",\n \"groupName\": \"Engineering Team\"\n }\n ],\n \"decisionAuthorities\": [\n {\n \"authorityTypeId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"authorityType\": \"Approval\",\n \"authorityLimit\": \"Primary\",\n \"authorityLimitValueType\": \"Currency\",\n \"authorityLimitOperator\": \"<=\",\n \"authorityTypeOrder\": 1,\n \"authorityTypeIcon\": \"check-square\",\n \"authorityLimitValue\": \"1000000\",\n \"authorityLimitValueUnit\": \"$\",\n \"authorityThresholdValue\": \"50000\",\n \"authorityThresholdOperator\": \">=\"\n }\n ],\n \"decisionDocuments\": [\n {\n \"documentId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"documentName\": \"Proxy Comm Delegation of Authority Policy\",\n \"documentIcon\": \"file_text_outlined\",\n \"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.\",\n \"isPinned\": true,\n \"documentDisplayId\": \"10000\",\n \"documentStatus\": \"PUBLISHED\",\n \"documentUrl\": \"https://filesamples.com/samples/document/pdf/sample1.pdf\",\n \"documentTypeName\": \"Policy\",\n \"documentFileType\": \"pdf\",\n \"documentFileLink\": \"https://example.com/files/project_document.pdf\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://staging.api.us.aptlydone.com/decision/v1/decisions/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sectionId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"sectionName\": \"Financial Authority\",\n \"status\": \"PUBLISHED\",\n \"updatedBy\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"updatedByUsername\": \"John Doe\",\n \"delegable\": false,\n \"name\": \"Long-term Investments\",\n \"description\": \"The Long-term Investments authority involves approving strategic investments\",\n \"guidance\": \"Investment decisions for long-term, strategic investments...\",\n \"categoryId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"categoryName\": \"Budget Approval\",\n \"owner\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"ownerUsername\": \"John Doe\",\n \"conditionEnabled\": false,\n \"roleEnabled\": false,\n \"delegationPathway\": [\n \"Matrix\",\n \"Direct Line\",\n \"Functional\"\n ],\n \"decisionGroups\": [\n {\n \"groupId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"tenantGroupTypeId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"displayName\": \"Engineering Team\",\n \"groupName\": \"Engineering Team\"\n }\n ],\n \"decisionAuthorities\": [\n {\n \"authorityTypeId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"authorityType\": \"Approval\",\n \"authorityLimit\": \"Primary\",\n \"authorityLimitValueType\": \"Currency\",\n \"authorityLimitOperator\": \"<=\",\n \"authorityTypeOrder\": 1,\n \"authorityTypeIcon\": \"check-square\",\n \"authorityLimitValue\": \"1000000\",\n \"authorityLimitValueUnit\": \"$\",\n \"authorityThresholdValue\": \"50000\",\n \"authorityThresholdOperator\": \">=\"\n }\n ],\n \"decisionDocuments\": [\n {\n \"documentId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"documentName\": \"Proxy Comm Delegation of Authority Policy\",\n \"documentIcon\": \"file_text_outlined\",\n \"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.\",\n \"isPinned\": true,\n \"documentDisplayId\": \"10000\",\n \"documentStatus\": \"PUBLISHED\",\n \"documentUrl\": \"https://filesamples.com/samples/document/pdf/sample1.pdf\",\n \"documentTypeName\": \"Policy\",\n \"documentFileType\": \"pdf\",\n \"documentFileLink\": \"https://example.com/files/project_document.pdf\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.api.us.aptlydone.com/decision/v1/decisions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sectionId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"sectionName\": \"Financial Authority\",\n \"status\": \"PUBLISHED\",\n \"updatedBy\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"updatedByUsername\": \"John Doe\",\n \"delegable\": false,\n \"name\": \"Long-term Investments\",\n \"description\": \"The Long-term Investments authority involves approving strategic investments\",\n \"guidance\": \"Investment decisions for long-term, strategic investments...\",\n \"categoryId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"categoryName\": \"Budget Approval\",\n \"owner\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"ownerUsername\": \"John Doe\",\n \"conditionEnabled\": false,\n \"roleEnabled\": false,\n \"delegationPathway\": [\n \"Matrix\",\n \"Direct Line\",\n \"Functional\"\n ],\n \"decisionGroups\": [\n {\n \"groupId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"tenantGroupTypeId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"displayName\": \"Engineering Team\",\n \"groupName\": \"Engineering Team\"\n }\n ],\n \"decisionAuthorities\": [\n {\n \"authorityTypeId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"authorityType\": \"Approval\",\n \"authorityLimit\": \"Primary\",\n \"authorityLimitValueType\": \"Currency\",\n \"authorityLimitOperator\": \"<=\",\n \"authorityTypeOrder\": 1,\n \"authorityTypeIcon\": \"check-square\",\n \"authorityLimitValue\": \"1000000\",\n \"authorityLimitValueUnit\": \"$\",\n \"authorityThresholdValue\": \"50000\",\n \"authorityThresholdOperator\": \">=\"\n }\n ],\n \"decisionDocuments\": [\n {\n \"documentId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"documentName\": \"Proxy Comm Delegation of Authority Policy\",\n \"documentIcon\": \"file_text_outlined\",\n \"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.\",\n \"isPinned\": true,\n \"documentDisplayId\": \"10000\",\n \"documentStatus\": \"PUBLISHED\",\n \"documentUrl\": \"https://filesamples.com/samples/document/pdf/sample1.pdf\",\n \"documentTypeName\": \"Policy\",\n \"documentFileType\": \"pdf\",\n \"documentFileLink\": \"https://example.com/files/project_document.pdf\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"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
Update decision
PATCH
/
v1
/
decisions
/
{id}
Update decision
curl --request PATCH \
--url https://staging.api.us.aptlydone.com/decision/v1/decisions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"sectionId": "105fa115-52d0-4466-baff-740447a60774",
"sectionName": "Financial Authority",
"status": "PUBLISHED",
"updatedBy": "105fa115-52d0-4466-baff-740447a60774",
"updatedByUsername": "John Doe",
"delegable": false,
"name": "Long-term Investments",
"description": "The Long-term Investments authority involves approving strategic investments",
"guidance": "Investment decisions for long-term, strategic investments...",
"categoryId": "105fa115-52d0-4466-baff-740447a60774",
"categoryName": "Budget Approval",
"owner": "105fa115-52d0-4466-baff-740447a60774",
"ownerUsername": "John Doe",
"conditionEnabled": false,
"roleEnabled": false,
"delegationPathway": [
"Matrix",
"Direct Line",
"Functional"
],
"decisionGroups": [
{
"groupId": "105fa115-52d0-4466-baff-740447a60774",
"tenantGroupTypeId": "105fa115-52d0-4466-baff-740447a60774",
"displayName": "Engineering Team",
"groupName": "Engineering Team"
}
],
"decisionAuthorities": [
{
"authorityTypeId": "105fa115-52d0-4466-baff-740447a60774",
"authorityType": "Approval",
"authorityLimit": "Primary",
"authorityLimitValueType": "Currency",
"authorityLimitOperator": "<=",
"authorityTypeOrder": 1,
"authorityTypeIcon": "check-square",
"authorityLimitValue": "1000000",
"authorityLimitValueUnit": "$",
"authorityThresholdValue": "50000",
"authorityThresholdOperator": ">="
}
],
"decisionDocuments": [
{
"documentId": "105fa115-52d0-4466-baff-740447a60774",
"documentName": "Proxy Comm Delegation of Authority 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.",
"isPinned": true,
"documentDisplayId": "10000",
"documentStatus": "PUBLISHED",
"documentUrl": "https://filesamples.com/samples/document/pdf/sample1.pdf",
"documentTypeName": "Policy",
"documentFileType": "pdf",
"documentFileLink": "https://example.com/files/project_document.pdf"
}
]
}
EOFimport requests
url = "https://staging.api.us.aptlydone.com/decision/v1/decisions/{id}"
payload = {
"sectionId": "105fa115-52d0-4466-baff-740447a60774",
"sectionName": "Financial Authority",
"status": "PUBLISHED",
"updatedBy": "105fa115-52d0-4466-baff-740447a60774",
"updatedByUsername": "John Doe",
"delegable": False,
"name": "Long-term Investments",
"description": "The Long-term Investments authority involves approving strategic investments",
"guidance": "Investment decisions for long-term, strategic investments...",
"categoryId": "105fa115-52d0-4466-baff-740447a60774",
"categoryName": "Budget Approval",
"owner": "105fa115-52d0-4466-baff-740447a60774",
"ownerUsername": "John Doe",
"conditionEnabled": False,
"roleEnabled": False,
"delegationPathway": ["Matrix", "Direct Line", "Functional"],
"decisionGroups": [
{
"groupId": "105fa115-52d0-4466-baff-740447a60774",
"tenantGroupTypeId": "105fa115-52d0-4466-baff-740447a60774",
"displayName": "Engineering Team",
"groupName": "Engineering Team"
}
],
"decisionAuthorities": [
{
"authorityTypeId": "105fa115-52d0-4466-baff-740447a60774",
"authorityType": "Approval",
"authorityLimit": "Primary",
"authorityLimitValueType": "Currency",
"authorityLimitOperator": "<=",
"authorityTypeOrder": 1,
"authorityTypeIcon": "check-square",
"authorityLimitValue": "1000000",
"authorityLimitValueUnit": "$",
"authorityThresholdValue": "50000",
"authorityThresholdOperator": ">="
}
],
"decisionDocuments": [
{
"documentId": "105fa115-52d0-4466-baff-740447a60774",
"documentName": "Proxy Comm Delegation of Authority 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.",
"isPinned": True,
"documentDisplayId": "10000",
"documentStatus": "PUBLISHED",
"documentUrl": "https://filesamples.com/samples/document/pdf/sample1.pdf",
"documentTypeName": "Policy",
"documentFileType": "pdf",
"documentFileLink": "https://example.com/files/project_document.pdf"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
sectionId: '105fa115-52d0-4466-baff-740447a60774',
sectionName: 'Financial Authority',
status: 'PUBLISHED',
updatedBy: '105fa115-52d0-4466-baff-740447a60774',
updatedByUsername: 'John Doe',
delegable: false,
name: 'Long-term Investments',
description: 'The Long-term Investments authority involves approving strategic investments',
guidance: 'Investment decisions for long-term, strategic investments...',
categoryId: '105fa115-52d0-4466-baff-740447a60774',
categoryName: 'Budget Approval',
owner: '105fa115-52d0-4466-baff-740447a60774',
ownerUsername: 'John Doe',
conditionEnabled: false,
roleEnabled: false,
delegationPathway: ['Matrix', 'Direct Line', 'Functional'],
decisionGroups: [
{
groupId: '105fa115-52d0-4466-baff-740447a60774',
tenantGroupTypeId: '105fa115-52d0-4466-baff-740447a60774',
displayName: 'Engineering Team',
groupName: 'Engineering Team'
}
],
decisionAuthorities: [
{
authorityTypeId: '105fa115-52d0-4466-baff-740447a60774',
authorityType: 'Approval',
authorityLimit: 'Primary',
authorityLimitValueType: 'Currency',
authorityLimitOperator: '<=',
authorityTypeOrder: 1,
authorityTypeIcon: 'check-square',
authorityLimitValue: '1000000',
authorityLimitValueUnit: '$',
authorityThresholdValue: '50000',
authorityThresholdOperator: '>='
}
],
decisionDocuments: [
{
documentId: '105fa115-52d0-4466-baff-740447a60774',
documentName: 'Proxy Comm Delegation of Authority 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.',
isPinned: true,
documentDisplayId: '10000',
documentStatus: 'PUBLISHED',
documentUrl: 'https://filesamples.com/samples/document/pdf/sample1.pdf',
documentTypeName: 'Policy',
documentFileType: 'pdf',
documentFileLink: 'https://example.com/files/project_document.pdf'
}
]
})
};
fetch('https://staging.api.us.aptlydone.com/decision/v1/decisions/{id}', 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/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'sectionId' => '105fa115-52d0-4466-baff-740447a60774',
'sectionName' => 'Financial Authority',
'status' => 'PUBLISHED',
'updatedBy' => '105fa115-52d0-4466-baff-740447a60774',
'updatedByUsername' => 'John Doe',
'delegable' => false,
'name' => 'Long-term Investments',
'description' => 'The Long-term Investments authority involves approving strategic investments',
'guidance' => 'Investment decisions for long-term, strategic investments...',
'categoryId' => '105fa115-52d0-4466-baff-740447a60774',
'categoryName' => 'Budget Approval',
'owner' => '105fa115-52d0-4466-baff-740447a60774',
'ownerUsername' => 'John Doe',
'conditionEnabled' => false,
'roleEnabled' => false,
'delegationPathway' => [
'Matrix',
'Direct Line',
'Functional'
],
'decisionGroups' => [
[
'groupId' => '105fa115-52d0-4466-baff-740447a60774',
'tenantGroupTypeId' => '105fa115-52d0-4466-baff-740447a60774',
'displayName' => 'Engineering Team',
'groupName' => 'Engineering Team'
]
],
'decisionAuthorities' => [
[
'authorityTypeId' => '105fa115-52d0-4466-baff-740447a60774',
'authorityType' => 'Approval',
'authorityLimit' => 'Primary',
'authorityLimitValueType' => 'Currency',
'authorityLimitOperator' => '<=',
'authorityTypeOrder' => 1,
'authorityTypeIcon' => 'check-square',
'authorityLimitValue' => '1000000',
'authorityLimitValueUnit' => '$',
'authorityThresholdValue' => '50000',
'authorityThresholdOperator' => '>='
]
],
'decisionDocuments' => [
[
'documentId' => '105fa115-52d0-4466-baff-740447a60774',
'documentName' => 'Proxy Comm Delegation of Authority 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.',
'isPinned' => true,
'documentDisplayId' => '10000',
'documentStatus' => 'PUBLISHED',
'documentUrl' => 'https://filesamples.com/samples/document/pdf/sample1.pdf',
'documentTypeName' => 'Policy',
'documentFileType' => 'pdf',
'documentFileLink' => 'https://example.com/files/project_document.pdf'
]
]
]),
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/{id}"
payload := strings.NewReader("{\n \"sectionId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"sectionName\": \"Financial Authority\",\n \"status\": \"PUBLISHED\",\n \"updatedBy\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"updatedByUsername\": \"John Doe\",\n \"delegable\": false,\n \"name\": \"Long-term Investments\",\n \"description\": \"The Long-term Investments authority involves approving strategic investments\",\n \"guidance\": \"Investment decisions for long-term, strategic investments...\",\n \"categoryId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"categoryName\": \"Budget Approval\",\n \"owner\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"ownerUsername\": \"John Doe\",\n \"conditionEnabled\": false,\n \"roleEnabled\": false,\n \"delegationPathway\": [\n \"Matrix\",\n \"Direct Line\",\n \"Functional\"\n ],\n \"decisionGroups\": [\n {\n \"groupId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"tenantGroupTypeId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"displayName\": \"Engineering Team\",\n \"groupName\": \"Engineering Team\"\n }\n ],\n \"decisionAuthorities\": [\n {\n \"authorityTypeId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"authorityType\": \"Approval\",\n \"authorityLimit\": \"Primary\",\n \"authorityLimitValueType\": \"Currency\",\n \"authorityLimitOperator\": \"<=\",\n \"authorityTypeOrder\": 1,\n \"authorityTypeIcon\": \"check-square\",\n \"authorityLimitValue\": \"1000000\",\n \"authorityLimitValueUnit\": \"$\",\n \"authorityThresholdValue\": \"50000\",\n \"authorityThresholdOperator\": \">=\"\n }\n ],\n \"decisionDocuments\": [\n {\n \"documentId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"documentName\": \"Proxy Comm Delegation of Authority Policy\",\n \"documentIcon\": \"file_text_outlined\",\n \"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.\",\n \"isPinned\": true,\n \"documentDisplayId\": \"10000\",\n \"documentStatus\": \"PUBLISHED\",\n \"documentUrl\": \"https://filesamples.com/samples/document/pdf/sample1.pdf\",\n \"documentTypeName\": \"Policy\",\n \"documentFileType\": \"pdf\",\n \"documentFileLink\": \"https://example.com/files/project_document.pdf\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://staging.api.us.aptlydone.com/decision/v1/decisions/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sectionId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"sectionName\": \"Financial Authority\",\n \"status\": \"PUBLISHED\",\n \"updatedBy\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"updatedByUsername\": \"John Doe\",\n \"delegable\": false,\n \"name\": \"Long-term Investments\",\n \"description\": \"The Long-term Investments authority involves approving strategic investments\",\n \"guidance\": \"Investment decisions for long-term, strategic investments...\",\n \"categoryId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"categoryName\": \"Budget Approval\",\n \"owner\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"ownerUsername\": \"John Doe\",\n \"conditionEnabled\": false,\n \"roleEnabled\": false,\n \"delegationPathway\": [\n \"Matrix\",\n \"Direct Line\",\n \"Functional\"\n ],\n \"decisionGroups\": [\n {\n \"groupId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"tenantGroupTypeId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"displayName\": \"Engineering Team\",\n \"groupName\": \"Engineering Team\"\n }\n ],\n \"decisionAuthorities\": [\n {\n \"authorityTypeId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"authorityType\": \"Approval\",\n \"authorityLimit\": \"Primary\",\n \"authorityLimitValueType\": \"Currency\",\n \"authorityLimitOperator\": \"<=\",\n \"authorityTypeOrder\": 1,\n \"authorityTypeIcon\": \"check-square\",\n \"authorityLimitValue\": \"1000000\",\n \"authorityLimitValueUnit\": \"$\",\n \"authorityThresholdValue\": \"50000\",\n \"authorityThresholdOperator\": \">=\"\n }\n ],\n \"decisionDocuments\": [\n {\n \"documentId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"documentName\": \"Proxy Comm Delegation of Authority Policy\",\n \"documentIcon\": \"file_text_outlined\",\n \"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.\",\n \"isPinned\": true,\n \"documentDisplayId\": \"10000\",\n \"documentStatus\": \"PUBLISHED\",\n \"documentUrl\": \"https://filesamples.com/samples/document/pdf/sample1.pdf\",\n \"documentTypeName\": \"Policy\",\n \"documentFileType\": \"pdf\",\n \"documentFileLink\": \"https://example.com/files/project_document.pdf\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.api.us.aptlydone.com/decision/v1/decisions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sectionId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"sectionName\": \"Financial Authority\",\n \"status\": \"PUBLISHED\",\n \"updatedBy\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"updatedByUsername\": \"John Doe\",\n \"delegable\": false,\n \"name\": \"Long-term Investments\",\n \"description\": \"The Long-term Investments authority involves approving strategic investments\",\n \"guidance\": \"Investment decisions for long-term, strategic investments...\",\n \"categoryId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"categoryName\": \"Budget Approval\",\n \"owner\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"ownerUsername\": \"John Doe\",\n \"conditionEnabled\": false,\n \"roleEnabled\": false,\n \"delegationPathway\": [\n \"Matrix\",\n \"Direct Line\",\n \"Functional\"\n ],\n \"decisionGroups\": [\n {\n \"groupId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"tenantGroupTypeId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"displayName\": \"Engineering Team\",\n \"groupName\": \"Engineering Team\"\n }\n ],\n \"decisionAuthorities\": [\n {\n \"authorityTypeId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"authorityType\": \"Approval\",\n \"authorityLimit\": \"Primary\",\n \"authorityLimitValueType\": \"Currency\",\n \"authorityLimitOperator\": \"<=\",\n \"authorityTypeOrder\": 1,\n \"authorityTypeIcon\": \"check-square\",\n \"authorityLimitValue\": \"1000000\",\n \"authorityLimitValueUnit\": \"$\",\n \"authorityThresholdValue\": \"50000\",\n \"authorityThresholdOperator\": \">=\"\n }\n ],\n \"decisionDocuments\": [\n {\n \"documentId\": \"105fa115-52d0-4466-baff-740447a60774\",\n \"documentName\": \"Proxy Comm Delegation of Authority Policy\",\n \"documentIcon\": \"file_text_outlined\",\n \"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.\",\n \"isPinned\": true,\n \"documentDisplayId\": \"10000\",\n \"documentStatus\": \"PUBLISHED\",\n \"documentUrl\": \"https://filesamples.com/samples/document/pdf/sample1.pdf\",\n \"documentTypeName\": \"Policy\",\n \"documentFileType\": \"pdf\",\n \"documentFileLink\": \"https://example.com/files/project_document.pdf\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"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
Response
200 - application/json
Decision updated successfully
Decision guidance
Example:
"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."
Was this page helpful?