Skip to navigation
REST ClientFabricResources

assign_domain_application

View as MarkdownOpen in Claude

Assign a domain application to a Fabric resource.

Path parameters

idstringRequiredformat: "uuid"
Unique ID of the domain application.

Request

domain_application_idstringRequiredformat: "uuid"
The id of the domain application you wish to assign a resource to.

Response

Application AddressobjectRequired
OR
Room AddressobjectRequired
OR
Call AddressobjectRequired

Response Example

Response
{
"canonical_uri": "/public/justice-league",
"channels": {
"audio": "/external/resource_name?channel=audio"
},
"cover_url": "https://coverurl.com",
"display_name": "Justice League",
"id": "691af061-cd86-4893-a605-173f47afc4c2",
"locked": true,
"name": "justice-league",
"preview_url": "https://previewurl.com",
"resource_id": "993ed018-9e79-4e50-b97b-984bd5534095",
"type": "app"
}

Example

from signalwire.rest import RestClient
client = RestClient(
project="your-project-id",
token="your-api-token",
host="your-space.signalwire.com",
)
result = client.fabric.resources.assign_domain_application(
"resource-id", domain_application_id="app-uuid",
)
print(f"Domain application assigned: {result['id']}")