Skip to content

PUT /v1/projects/{id}/platforms/voice/lines/{resourceId}/profile

Assigns or replaces a line's explicit additional-profile override when the resource version matches. The current default cannot be assigned explicitly. The pstn_voice ability remains the admission source of truth. Requires platforms:write bound to the path project.

photon.projects.platforms.assignVoiceLineProfile(input: AssignVoiceLineProfileInput, options?: RequestOptions): Promise<AssignVoiceLineProfileOutput>
import { Photon } from "@photon-ai/api";

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.platforms.assignVoiceLineProfile({
  path: {
    id: "id",
    resourceId: "resourceId",
  },
  body: {
    expectedVersion: 1,
    profileId: "profileId",
  },
});
{
  "profileId": "string",
  "profileVersion": 1,
  "projectId": "string",
  "resourceId": "string",
  "resourceVersion": 1,
  "updatedAt": "2026-01-01T00:00:00.000Z"
}

Parameters

Photon-VersionPhotonVersion

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

idstringrequired
resourceIdstringrequired

Body

expectedVersionintegerrequired
profileIdstringrequired

Returns

200 The updated Voice line profile assignment. VoiceLineProfileAssignment

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

profileIdstring
profileVersioninteger
projectIdstringrequired
resourceIdstringrequired
resourceVersionintegerrequired
updatedAtstring (date-time)required