update

View as MarkdownOpen in Claude

Replace a Relay application resource. Uses PUT for full replacement.

Path parameters

idstringRequiredformat: "uuid"
Unique ID of a Relay Application.

Request

namestringOptional
Name of the Relay Application
topicstringOptional
Topic of the Relay Application
call_status_callback_urlstringOptional
Call status callback URL

Response

idstringRequiredformat: "uuid"
Unique ID of the Relay Application.
project_idstringRequiredformat: "uuid"
Unique ID of the Project.
display_namestringRequired
Display name of the Relay Application Fabric Resource
typeenumRequired
Type of the Fabric Resource
created_atdatetimeRequired
Date and time when the resource was created.
updated_atdatetimeRequired
Date and time when the resource was updated.
relay_applicationobjectRequired
Relay Application data.

Response Example

Response
{
"id": "993ed018-9e79-4e50-b97b-984bd5534095",
"project_id": "1313fe58-5e14-4c11-bbe7-6fdfa11fe780",
"display_name": "Customer Service Bot",
"type": "relay_application",
"created_at": "2024-05-06T12:20:00Z",
"updated_at": "2024-05-06T12:20:00Z",
"relay_application": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Booking Assistant",
"topic": "booking",
"call_status_callback_url": "https://example.com/callbacks"
}
}

Example

import { RestClient } from "@signalwire/sdk";
const client = new RestClient({
project: "your-project-id",
token: "your-api-token",
host: "your-space.signalwire.com",
});
const updated = await client.fabric.relayApplications.update("resource-id", { name: "updated-name" });
console.log(`Updated: ${updated.display_name}`);