Skip to content

PATCH /v1/projects/{id}/platforms/voice/profiles/{profileId}

Patches an additional profile's name, protocol, or mediaEncryption when expectedVersion matches. Omitted fields are preserved. The default profile's metadata changes only through PATCH /v1/projects/{id}/platforms/voice/profiles/default, so a name, protocol, or mediaEncryption patch addressed to its profileId is refused with 409. Directional configuration is managed through the profile's inbound and outbound endpoints. Requires platforms:write bound to the path project.

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

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.platforms.updateVoiceProfile({
  path: {
    id: "id",
    profileId: "profileId",
  },
  body: {
    expectedVersion: 1,
  },
});
{
  "configuration": {
    "inbound": null,
    "outbound": null
  },
  "createdAt": "2026-01-01T00:00:00.000Z",
  "isDefault": true,
  "lineCount": 0,
  "mediaEncryption": "auto",
  "name": "string",
  "profileId": "string",
  "projectId": "string",
  "protocol": "sip",
  "updatedAt": "2026-01-01T00:00:00.000Z",
  "version": 1
}

Parameters

Photon-VersionPhotonVersion

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

idstringrequired
profileIdstringrequired

Body

expectedVersionintegerrequired
mediaEncryptionVoiceProfileMediaEncryption
namestring
protocolunknown

Returns

200 The updated Voice profile. VoiceProfile

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

configurationVoiceProfileConfigurationrequired
createdAtstring (date-time)required
isDefaultbooleanrequired
lineCountintegerrequired
mediaEncryptionVoiceProfileMediaEncryptionrequired
namestringrequired
profileIdstringrequired
projectIdstringrequired
protocolunknownrequired
updatedAtstring (date-time)required
versionintegerrequired