Merge-patch managed linkage
PATCH
/v1/ns/{nsid}/resources/linkages/{peer}
const url = 'https://example.com/v1/ns/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/resources/linkages/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"allow_inbound":true,"inbound_transfer_context":"example","outbound_transfer_context":"example","caller_id_mode":"fixed","inbound_caller_id_context":"example","outbound_caller_id_context":"example","allowed_caller_ids":["example"],"primary_caller_id":"example","present_external_caller_id":true,"attestation_mode":"A","resign_policy":"passthrough","transmit_passport":"transmit-full","inheritance":{"profile":"example","granted_aliases":{"additionalProperty":"example"},"max_concurrent_calls":1,"permitted_edge_ips":["example"],"permitted_sip_realms":["example"]},"clear_inheritance":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/v1/ns/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/resources/linkages/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "allow_inbound": true, "inbound_transfer_context": "example", "outbound_transfer_context": "example", "caller_id_mode": "fixed", "inbound_caller_id_context": "example", "outbound_caller_id_context": "example", "allowed_caller_ids": [ "example" ], "primary_caller_id": "example", "present_external_caller_id": true, "attestation_mode": "A", "resign_policy": "passthrough", "transmit_passport": "transmit-full", "inheritance": { "profile": "example", "granted_aliases": { "additionalProperty": "example" }, "max_concurrent_calls": 1, "permitted_edge_ips": [ "example" ], "permitted_sip_realms": [ "example" ] }, "clear_inheritance": true }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”nsid
required
string format: uuid
Namespace UUID
peer
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Merge-patch; omitted fields are no-ops
object
allow_inbound
boolean
inbound_transfer_context
string
outbound_transfer_context
string
caller_id_mode
string
inbound_caller_id_context
string
outbound_caller_id_context
string
allowed_caller_ids
Array<string>
primary_caller_id
string
present_external_caller_id
boolean
attestation_mode
string
resign_policy
string
transmit_passport
string
inheritance
object
profile
string
granted_aliases
object
key
additional properties
string
max_concurrent_calls
integer
permitted_edge_ips
Edge-proxy values (exact host/IP or CIDR) a child may use. Empty means the parent imposes no restriction. Composed with the partition’s own allow-list; a parent can narrow, never widen.
Array<string>
permitted_sip_realms
SIP realms a child may use; each entry permits that realm and any subdomain of it. Empty means no parent restriction.
Array<string>
clear_inheritance
Set true to remove the inheritance block. A present inheritance object replaces the block wholesale; a null/omitted one is a no-op, so this flag is the only way to clear it.
boolean
Responses
Section titled “Responses”OK
Media typeapplication/json
object
success
required
boolean
Example
{ "success": true}default
Section titled “default”Error response
Media typeapplication/problem+json
RFC 7807 Problem Details
object
type
Problem type slug URI
string
title
string
status
integer
detail
string
key
additional properties
any
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example"}