Skip to main content
Ctrl+K

DIDWW Docs

Support Sign in
  • Services & Tools
  • phone.systems™
  • Integrations
    • API Documentation
    • Call Events
API3 Version:
  • Services & Tools
  • phone.systems™
  • Integrations
  • API Documentation
  • Call Events
API3 Version:
Support Sign in

Section Navigation

Introduction

  • Getting Started
  • API Requests in Postman
  • SDKs and Tools
  • Use Case Examples
    • Buy DID Number(s) that Requires Verification
    • Buy Available DID Number(s)
    • Select, Reserve & Buy Available DID Number(s)
    • Register Emergency Calling Service
    • Update Emergency Calling Service
  • Specification
    • Sorting
    • Pagination
    • Filters
    • Sparse Fieldsets
    • Inclusion of Related Resources
    • Headers
    • Assigning Related Resources
    • Error Objects
  • API Versioning

API Documentation v2026-04-16 (Latest)

  • Overview
  • Coverage Resources
    • Countries
      • Get Country
      • Get Countries
      • Country Object
    • Regions
      • Get Region
      • Get Regions
      • Regions Object
    • Cities
      • Get City
      • Get Cities
      • City Object
    • NANPA Prefix
      • Get NANPA Prefix
      • Get NANPA Prefixes
      • NANPA Prefix Object
    • DID Group Type
      • Get DID Group Type
      • Get DID Group Types
      • DID Group Type Object
    • DID Group
      • Get DID Group
      • Get DID Groups
      • DID Group Object
    • Available DID
      • Get Available DID
      • Get Available DIDs
      • Available DID Object
    • DID Reservation
      • Get DID Reservation
      • Get DID Reservations
      • Create DID Reservation
      • Delete DID Reservation
      • DID Reservation Object
  • Inventory Resources
    • Balance
      • Get Balance
      • Balance Object
    • Orders
      • Get Order
      • Get Orders
      • Create Order
      • Cancel Order
      • Order Object
    • DID
      • Get DID
      • Get DIDs
      • Update DID
      • DID Object
    • DID History
      • Get DID History
      • Get DID Histories
      • DID History Object
    • Inbound Trunks
      • Get Inbound Trunk
      • Get Inbound Trunks
      • Create Inbound Trunk
      • Update Inbound Trunk
      • Delete Inbound Trunk
      • Inbound Trunk Object
      • Get POPs
      • POP Object
      • Codecs
      • Rerouting Disconnect Codes
    • Inbound Trunk Group
      • Get Inbound Trunk Group
      • Get Inbound Trunk Groups
      • Create Inbound Trunk Group
      • Update Inbound Trunk Group
      • Delete Inbound Trunk Group
      • Inbound Trunk Group Object
    • Outbound Trunks
      • Get Outbound Trunk
      • Get Outbound Trunks
      • Create Outbound Trunk
      • Update Outbound Trunk
      • Delete Outbound Trunk
      • Outbound Trunk Object
      • Outbound Trunk Regenerate Credentials
    • Capacity Pool
      • Get Capacity Pool
      • Get Capacity Pools
      • Update Capacity Pool
      • Capacity Pool Object
    • Shared Capacity Group
      • Get Shared Capacity Group
      • Get Shared Capacity Groups
      • Create Shared Capacity Groups
      • Update Shared Capacity Groups
      • Delete Shared Capacity Group
      • Shared Capacity Group Object
  • Regulation Resources
    • Identities
      • Get Identity
      • Get Identities
      • Create Identity
      • Update Identity
      • Delete Identity
      • Identity Object
    • Addresses
      • Get Address
      • Get Addresses
      • Create Addresses
      • Update Addresses
      • Delete Address
      • Addresses Object
    • Address Requirements
      • Get Address Requirement
      • Get Address Requirements
      • Address Requirement Object
      • Address Requirement Validations
    • Address Verifications
      • Get Address Verification
      • Get Address Verifications
      • Create Address Verification
      • Update Address Verification
      • Address Verifications Object
    • Supporting Document Templates
      • Get Supporting Document Templates
      • Get Supporting Document Templates
      • Supporting Document Template Object
    • Encrypted Files
      • Encryption details
      • Get Encrypted File
      • Get Encrypted Files
      • Create Encrypted File
      • Delete Encrypted File
      • Encrypted Files Object
      • Get Public Keys
    • Proofs
      • Get Proof
      • Get Proofs
      • Create Proof
      • Delete Proof
      • Proofs Object
    • Permanent Supporting Documents
      • Get Permanent Supporting Document
      • Get Permanent Supporting Documents
      • Create Permanent Supporting Document
      • Delete Permanent Supporting Document
      • Permanent Supporting Documents Object
    • Proof Types
      • Get Proof Type
      • Get Proof Types
      • Proof Types Object
    • Areas
      • Get Area
      • Get Areas
      • Area Object
  • Emergency Resources
    • Emergency Requirements
      • Get Emergency Requirement
      • Get Emergency Requirements
      • Emergency Requirement Object
      • Emergency Requirement Validations
    • Emergency Calling Services
      • Get Emergency Calling Service
      • Get Emergency Calling Services
      • Delete Emergency Calling Service
      • Emergency Calling Service Object
    • Emergency Verifications
      • Get Emergency Verification
      • Get Emergency Verifications
      • Create Emergency Verification
      • Update Emergency Verification
      • Emergency Verification Object
  • Export
    • Get Export
    • Get Exports
    • Get CSV File of Export
    • Create Export
    • Export Object
    • Export Filters Object
  • Common Definitions
    • Stock Keeping Unit Object
    • Channel Quantity Based Price Object
  • Callback Details
  • Changelog
  • API Documentation v2026-04-16 (Latest Version)
  • Specification
  • Assigning Related Resources

Assigning Related Resources#

You can manage relationships between resources using the PATCH methods. Relationships can be either to-one (a single related resource) or to-many (multiple related resources).

Important

  • Use PATCH to replace or remove relationships.

  • Servers may return 403 Forbidden if complete replacement is not allowed.



Updating to-one relationships#

Use a PATCH request to update a to-one relationship.

This request updates the inbound trunk assigned to a DID:

http

PATCH /v3/dids/f10d40c7-fd0b-4d63-bb9b-27810a1a8f5c HTTP/1.1
Host: api.didww.com
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json

{
  "data": {
    "type": "dids",
    "id": "f10d40c7-fd0b-4d63-bb9b-27810a1a8f5c",
    "relationships": {
      "voice_in_trunk": {
        "data": { "type": "voice_in_trunks", "id": "d9b6ec47-0b72-452b-b4b4-23dd9d5be7e6" }
      }
    }
  }
}

curl

curl -i -X PATCH https://api.didww.com/v3/dids/f10d40c7-fd0b-4d63-bb9b-27810a1a8f5c -H "Accept: application/vnd.api+json" -H "Content-Type: application/vnd.api+json" --data-raw '{"data": {"id": "f10d40c7-fd0b-4d63-bb9b-27810a1a8f5c", "relationships": {"voice_in_trunk": {"data": {"id": "d9b6ec47-0b72-452b-b4b4-23dd9d5be7e6", "type": "voice_in_trunks"}}}, "type": "dids"}}'

This request clears the inbound trunk relationship by setting it to null:

http

PATCH /v3/dids/f10d40c7-fd0b-4d63-bb9b-27810a1a8f5c HTTP/1.1
Host: api.didww.com
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json

{
  "data": {
    "type": "dids",
    "id": "1e0c45b1-1fea-4552-b41b-ffa9f5eb44c5",
    "relationships": {
      "voice_in_trunk": {
        "data": null
      }
    }
  }
}

curl

curl -i -X PATCH https://api.didww.com/v3/dids/f10d40c7-fd0b-4d63-bb9b-27810a1a8f5c -H "Accept: application/vnd.api+json" -H "Content-Type: application/vnd.api+json" --data-raw '{"data": {"id": "1e0c45b1-1fea-4552-b41b-ffa9f5eb44c5", "relationships": {"voice_in_trunk": {"data": null}}, "type": "dids"}}'

Updating to-many relationships#

Use PATCH to replace all members of a to-many relationship or clear them.

http

PATCH /v3/voice_in_trunk_groups/714e8148-0aea-4cb6-8680-bd1d06453418 HTTP/1.1
Host: api.didww.com
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json

{
  "data": {
    "id": "714e8148-0aea-4cb6-8680-bd1d06453418",
    "type": "voice_in_trunk_groups",
    "relationships": {
      "voice_in_trunks": {
        "data": [
          { "type": "voice_in_trunks", "id": "ca7da6d0-aa0b-447d-8fc0-1bc58b51298c"},
          { "type": "voice_in_trunks", "id": "e9c1b7e9-253b-46c8-b7e9-5a930ab594c5" }
        ]
      }
    }
  }
}

curl

curl -i -X PATCH https://api.didww.com/v3/voice_in_trunk_groups/714e8148-0aea-4cb6-8680-bd1d06453418 -H "Accept: application/vnd.api+json" -H "Content-Type: application/vnd.api+json" --data-raw '{"data": {"id": "714e8148-0aea-4cb6-8680-bd1d06453418", "relationships": {"voice_in_trunks": {"data": [{"type": "voice_in_trunks", "id": "ca7da6d0-aa0b-447d-8fc0-1bc58b51298c"}, {"type": "voice_in_trunks", "id": "e9c1b7e9-253b-46c8-b7e9-5a930ab594c5"}]}}, "type": "voice_in_trunk_groups"}}'

http

PATCH /v3/voice_in_trunk_groups/c07815fc-bf9e-4cbf-a3fc-9c99b8de14d8 HTTP/1.1
Host: api.didww.com
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json

{
  "data": {
    "id": "c07815fc-bf9e-4cbf-a3fc-9c99b8de14d8",
    "type": "voice_in_trunk_groups",
    "relationships": {
      "voice_in_trunks": {
        "data": []
      }
    }
  }
}

curl

curl -i -X PATCH https://api.didww.com/v3/voice_in_trunk_groups/c07815fc-bf9e-4cbf-a3fc-9c99b8de14d8 -H "Accept: application/vnd.api+json" -H "Content-Type: application/vnd.api+json" --data-raw '{"data": {"id": "c07815fc-bf9e-4cbf-a3fc-9c99b8de14d8", "relationships": {"voice_in_trunks": {"data": []}}, "type": "voice_in_trunk_groups"}}'

previous

Headers

next

Error Objects

On this page
  • Updating to-one relationships
  • Updating to-many relationships

Last updated on May 29, 2026.