Unassign Voice line profile
Unassign Voice line profile: unassignVoiceLineProfile in the TypeScript, Python, Rust and Go clients.
DELETE /v1/projects/{id}/platforms/voice/lines/{resourceId}/profile
Removes a line's explicit override when the resource version matches so the line follows the project default. Profiles and the pstn_voice ability are unchanged. Requires platforms:write bound to the path project.
photon.projects.platforms.unassignVoiceLineProfile(input: UnassignVoiceLineProfileInput, options?: RequestOptions): Promise<UnassignVoiceLineProfileOutput>photon.projects.platforms.unassign_voice_line_profile(input: UnassignVoiceLineProfileInput, *, options: RequestOptions | None = None) -> Noneclient.unassign_voice_line_profile(id: String, resource_id: String, expected_version: i64).await -> Result<ResponseValue<()>, Error<UnassignVoiceLineProfileError>>client.Projects.Platforms.UnassignVoiceLineProfile(ctx context.Context, params *UnassignVoiceLineProfileParams, opts ...RequestOption) errorimport { Photon } from "@photon-ai/api";
const photon = new Photon({
headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
await photon.projects.platforms.unassignVoiceLineProfile({
path: {
id: "id",
resourceId: "resourceId",
},
query: {
expectedVersion: 1,
},
});import os
from photon_api import Photon
from photon_api.rpc_generated import UnassignVoiceLineProfileInput
photon = Photon(headers={"Authorization": f"Bearer {os.environ['PHOTON_API_TOKEN']}"})
photon.projects.platforms.unassign_voice_line_profile(
UnassignVoiceLineProfileInput.model_validate({
"path": {
"id": "id",
"resourceId": "resourceId",
},
"query": {
"expectedVersion": 1,
},
})
)use photon_ai_api::{Credential, PhotonClientBuilder, SecretString};
let token = std::env::var("PHOTON_API_TOKEN")?;
let client = PhotonClientBuilder::new()
.credential("accountServiceKey", Credential::Bearer(SecretString::from(token)))
.build()?;
client
.unassign_voice_line_profile("id".to_owned(), "resourceId".to_owned(), 1)
.await
.map_err(|error| format!("{error:?}"))?;import (
"context"
"os"
photonapi "github.com/photon-hq/api/packages/go"
)
ctx := context.Background()
client := photonapi.NewClient(photonapi.WithAPIKey(os.Getenv("PHOTON_API_TOKEN")))
err := client.Projects.Platforms.UnassignVoiceLineProfile(ctx, &photonapi.UnassignVoiceLineProfileParams{
ID: "id",
ResourceID: "resourceId",
ExpectedVersion: 1,
})
if err != nil {
return err
}Parameters
Selects the API contract date. Without it, the request is served as 2026-07-01.
Returns
204 The Voice profile was unassigned. No body.
Headers: Photon-Version. The raw response carries these headers; see Raw responses.