Skip to content

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

Patches the default profile's protocol or mediaEncryption when expectedVersion matches. Omitted fields are preserved. Its server-assigned name is immutable, and directional configuration uses the profileId returned by this resource. Requires platforms:write bound to the path project.

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

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.platforms.updateDefaultVoiceProfile({
  path: {
    id: "id",
  },
  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

Body

expectedVersionintegerrequired
mediaEncryptionVoiceProfileMediaEncryption
protocolunknown

Returns

200 The updated default 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