curl --request PUT \
--url 'https://api.hexelstudio.com/v1/titan/management/policy-layers/workspaces/{workspace_id}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"approval_profiles": [
{
"approval_profile_id": "string",
"delegator_separation_required": true,
"maximum_age_seconds": 0,
"notify": [
{
"channel": "string",
"type": "string",
"url": "string"
}
],
"quorum": 0,
"requester_separation_required": true,
"role_ids": [
"string"
]
}
],
"approval_roles": [
{
"delegator": true,
"group_ids": [
"string"
],
"human_principal_ids": [
"string"
],
"role_id": "string"
}
],
"authorization_not_before": 0,
"enforcement_deployment_id": "string",
"obligation_profile_references": [
{
"conflicts_with": [
"string"
],
"kind": "string",
"profile_digest": "string",
"profile_id": "string",
"profile_version": 0
}
],
"organization_id": "string",
"policy_source_id": "string",
"rules": [
{
"approval_profile_ids": [
"string"
],
"connection_constraints": {
"allowed_principal_types": [
"string"
],
"provider": "string",
"required_destination_boundaries": [
"string"
],
"required_permissions": [
"string"
],
"required_tags": [
"string"
]
},
"effect": "string",
"limits": {
"maximum_concurrency": 0,
"maximum_cost_microunits": 0,
"maximum_response_bytes": 0,
"timeout_ms": 0
},
"match": {
"agent_ids": [
"string"
],
"agent_revision_ids": [
"string"
],
"attributes": [
{
"name": "string",
"operator": "string",
"value": "string"
}
],
"capability_contract_digests": [
"string"
],
"capability_ids": [
"string"
],
"capability_revisions": [
0
],
"delegation": "string",
"delegator_ids": [
"string"
],
"deployment_ids": [
"string"
],
"destination_boundaries_all": [
"string"
],
"destination_providers": [
"string"
],
"environment_ids": [
"string"
],
"environment_states": [
"string"
],
"excluded_delegator_ids": [
"string"
],
"minimum_assurance": "string",
"operations": [
"string"
],
"resource_ids": [
"string"
],
"resource_types": [
"string"
],
"risk_classes": [
"string"
],
"runtime_classes": [
"string"
],
"runtime_principal_ids": [
"string"
],
"side_effect_classes": [
"string"
],
"toolkits": [
"string"
],
"utc_windows": [
{
"end_minute": 0,
"start_minute": 0,
"weekday": 0
}
],
"workspace_ids": [
"string"
]
},
"mode": "string",
"obligations": {
"audit_profile_ids": [
"string"
],
"audit_required": true,
"executor_obligation_profile_ids": [
"string"
],
"idempotency_required": true,
"response_filter_profile_ids": [
"string"
]
},
"priority": 0,
"rule_id": "string"
}
],
"source_revision": 0,
"version": 0
}' const res = await fetch ( "https://api.hexelstudio.com/v1/titan/management/policy-layers/workspaces/{workspace_id}" , {
method: "PUT" ,
headers: {
Authorization: `Bearer ${ process.env.ACCESS_TOKEN }` ,
"Content-Type" : "application/json" ,
},
body: JSON. stringify ({
"approval_profiles" : [
{
"approval_profile_id" : "string" ,
"delegator_separation_required" : true ,
"maximum_age_seconds" : 0 ,
"notify" : [
{
"channel" : "string" ,
"type" : "string" ,
"url" : "string"
}
],
"quorum" : 0 ,
"requester_separation_required" : true ,
"role_ids" : [
"string"
]
}
],
"approval_roles" : [
{
"delegator" : true ,
"group_ids" : [
"string"
],
"human_principal_ids" : [
"string"
],
"role_id" : "string"
}
],
"authorization_not_before" : 0 ,
"enforcement_deployment_id" : "string" ,
"obligation_profile_references" : [
{
"conflicts_with" : [
"string"
],
"kind" : "string" ,
"profile_digest" : "string" ,
"profile_id" : "string" ,
"profile_version" : 0
}
],
"organization_id" : "string" ,
"policy_source_id" : "string" ,
"rules" : [
{
"approval_profile_ids" : [
"string"
],
"connection_constraints" : {
"allowed_principal_types" : [
"string"
],
"provider" : "string" ,
"required_destination_boundaries" : [
"string"
],
"required_permissions" : [
"string"
],
"required_tags" : [
"string"
]
},
"effect" : "string" ,
"limits" : {
"maximum_concurrency" : 0 ,
"maximum_cost_microunits" : 0 ,
"maximum_response_bytes" : 0 ,
"timeout_ms" : 0
},
"match" : {
"agent_ids" : [
"string"
],
"agent_revision_ids" : [
"string"
],
"attributes" : [
{
"name" : "string" ,
"operator" : "string" ,
"value" : "string"
}
],
"capability_contract_digests" : [
"string"
],
"capability_ids" : [
"string"
],
"capability_revisions" : [
0
],
"delegation" : "string" ,
"delegator_ids" : [
"string"
],
"deployment_ids" : [
"string"
],
"destination_boundaries_all" : [
"string"
],
"destination_providers" : [
"string"
],
"environment_ids" : [
"string"
],
"environment_states" : [
"string"
],
"excluded_delegator_ids" : [
"string"
],
"minimum_assurance" : "string" ,
"operations" : [
"string"
],
"resource_ids" : [
"string"
],
"resource_types" : [
"string"
],
"risk_classes" : [
"string"
],
"runtime_classes" : [
"string"
],
"runtime_principal_ids" : [
"string"
],
"side_effect_classes" : [
"string"
],
"toolkits" : [
"string"
],
"utc_windows" : [
{
"end_minute" : 0 ,
"start_minute" : 0 ,
"weekday" : 0
}
],
"workspace_ids" : [
"string"
]
},
"mode" : "string" ,
"obligations" : {
"audit_profile_ids" : [
"string"
],
"audit_required" : true ,
"executor_obligation_profile_ids" : [
"string"
],
"idempotency_required" : true ,
"response_filter_profile_ids" : [
"string"
]
},
"priority" : 0 ,
"rule_id" : "string"
}
],
"source_revision" : 0 ,
"version" : 0
}),
})
const data = await res. json () import os
import requests
res = requests.put(
"https://api.hexelstudio.com/v1/titan/management/policy-layers/workspaces/{workspace_id}" ,
headers={ "Authorization" : f "Bearer {os.environ[ 'ACCESS_TOKEN' ]} " },
json={
"approval_profiles" : [
{
"approval_profile_id" : "string" ,
"delegator_separation_required" : True ,
"maximum_age_seconds" : 0 ,
"notify" : [
{
"channel" : "string" ,
"type" : "string" ,
"url" : "string" ,
},
],
"quorum" : 0 ,
"requester_separation_required" : True ,
"role_ids" : [
"string" ,
],
},
],
"approval_roles" : [
{
"delegator" : True ,
"group_ids" : [
"string" ,
],
"human_principal_ids" : [
"string" ,
],
"role_id" : "string" ,
},
],
"authorization_not_before" : 0 ,
"enforcement_deployment_id" : "string" ,
"obligation_profile_references" : [
{
"conflicts_with" : [
"string" ,
],
"kind" : "string" ,
"profile_digest" : "string" ,
"profile_id" : "string" ,
"profile_version" : 0 ,
},
],
"organization_id" : "string" ,
"policy_source_id" : "string" ,
"rules" : [
{
"approval_profile_ids" : [
"string" ,
],
"connection_constraints" : {
"allowed_principal_types" : [
"string" ,
],
"provider" : "string" ,
"required_destination_boundaries" : [
"string" ,
],
"required_permissions" : [
"string" ,
],
"required_tags" : [
"string" ,
],
},
"effect" : "string" ,
"limits" : {
"maximum_concurrency" : 0 ,
"maximum_cost_microunits" : 0 ,
"maximum_response_bytes" : 0 ,
"timeout_ms" : 0 ,
},
"match" : {
"agent_ids" : [
"string" ,
],
"agent_revision_ids" : [
"string" ,
],
"attributes" : [
{
"name" : "string" ,
"operator" : "string" ,
"value" : "string" ,
},
],
"capability_contract_digests" : [
"string" ,
],
"capability_ids" : [
"string" ,
],
"capability_revisions" : [
0 ,
],
"delegation" : "string" ,
"delegator_ids" : [
"string" ,
],
"deployment_ids" : [
"string" ,
],
"destination_boundaries_all" : [
"string" ,
],
"destination_providers" : [
"string" ,
],
"environment_ids" : [
"string" ,
],
"environment_states" : [
"string" ,
],
"excluded_delegator_ids" : [
"string" ,
],
"minimum_assurance" : "string" ,
"operations" : [
"string" ,
],
"resource_ids" : [
"string" ,
],
"resource_types" : [
"string" ,
],
"risk_classes" : [
"string" ,
],
"runtime_classes" : [
"string" ,
],
"runtime_principal_ids" : [
"string" ,
],
"side_effect_classes" : [
"string" ,
],
"toolkits" : [
"string" ,
],
"utc_windows" : [
{
"end_minute" : 0 ,
"start_minute" : 0 ,
"weekday" : 0 ,
},
],
"workspace_ids" : [
"string" ,
],
},
"mode" : "string" ,
"obligations" : {
"audit_profile_ids" : [
"string" ,
],
"audit_required" : True ,
"executor_obligation_profile_ids" : [
"string" ,
],
"idempotency_required" : True ,
"response_filter_profile_ids" : [
"string" ,
],
},
"priority" : 0 ,
"rule_id" : "string" ,
},
],
"source_revision" : 0 ,
"version" : 0 ,
},
)
data = res.json() 200 400 401 403 404 405 409 413 415 502 503
{
"deployments" : [
{
"applied" : true ,
"deployment_id" : "string" ,
"enforcement_deployment_id" : "string" ,
"error_code" : "string"
}
],
"organization" : {
"policy_source_id" : "string" ,
"source" : "string" ,
"source_digest" : "string" ,
"source_revision" : 0 ,
"updated_at" : "2026-01-01T00:00:00Z" ,
"updated_by" : "string"
},
"organization_id" : "string" ,
"workspaces" : {
"key" : {
"policy_source_id" : "string" ,
"source" : "string" ,
"source_digest" : "string" ,
"source_revision" : 0 ,
"updated_at" : "2026-01-01T00:00:00Z" ,
"updated_by" : "string"
}
}
} {
"error" : {
"billing_url" : "string" ,
"code" : "string" ,
"message" : "string"
}
} {
"error" : {
"billing_url" : "string" ,
"code" : "string" ,
"message" : "string"
}
} {
"error" : {
"billing_url" : "string" ,
"code" : "string" ,
"message" : "string"
}
} {
"error" : {
"billing_url" : "string" ,
"code" : "string" ,
"message" : "string"
}
} {
"error" : {
"billing_url" : "string" ,
"code" : "string" ,
"message" : "string"
}
} {
"error" : {
"billing_url" : "string" ,
"code" : "string" ,
"message" : "string"
}
} {
"error" : {
"billing_url" : "string" ,
"code" : "string" ,
"message" : "string"
}
} {
"error" : {
"billing_url" : "string" ,
"code" : "string" ,
"message" : "string"
}
} {
"error" : {
"billing_url" : "string" ,
"code" : "string" ,
"message" : "string"
}
} {
"error" : {
"billing_url" : "string" ,
"code" : "string" ,
"message" : "string"
}
}