Skip to content

POST /v1/projects/{id}/platforms/voice/lines/profile-assignments/batch

Atomically sets additional-profile overrides or switches lines back to the project default for up to 100 Voice-capable lines. A null profileId means use the default. Every expected resource version must match or no line changes. Requires platforms:write bound to the path project.

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

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.platforms.batchUpdateVoiceLineProfileAssignments({
  path: {
    id: "id",
  },
  body: {
    updates: [
      {
        expectedVersion: 1,
        profileId: "profileId",
        resourceId: "resourceId",
      },
    ],
  },
});
{
  "assignments": [
    {
      "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

Body

updatesarray of VoiceLineProfileAssignmentUpdaterequired

Returns

200 The updated line profile assignments. BatchUpdateVoiceLineProfileAssignmentsResponse

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

assignmentsarray of VoiceLineProfileAssignmentrequired