Skip to content

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>
import { 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,
  },
});

Parameters

Photon-VersionPhotonVersion

Selects the API contract date. Without it, the request is served as 2026-07-01.

idstringrequired
resourceIdstringrequired
expectedVersionintegerrequired

Returns

204 The Voice profile was unassigned. No body.

Headers: Photon-Version. The raw response carries these headers; see Raw responses.