Skip to navigation

assignDomainApplication

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

import { RestClient } from "@signalwire/sdk";
const client = new RestClient({
project: "your-project-id",
token: "your-api-token",
host: "your-space.signalwire.com"
});
const result = await client.fabric.resources.assignDomainApplication("resource-id", "app-uuid");
console.log(`Domain application assigned: ${result.id}`);