Skip to content

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

Changes a SIP profile's outbound Digest algorithm when expectedVersion matches. The profileId may identify the default or an additional profile. This policy-only change preserves the password, username, and any previous-password grace deadline. SHA-256 is recommended; MD5 is a weaker legacy option. Returns non-secret outbound metadata and the profile version. Requires platforms:write bound to the path project.

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

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.platforms.updateVoiceProfileOutboundAuthentication({
  path: {
    id: "id",
    profileId: "profileId",
  },
  body: {
    authentication: {
      algorithm: "sha-256",
    },
    expectedVersion: 1,
  },
});
{
  "outbound": {
    "authentication": {
      "algorithm": "sha-256",
      "previousPasswordValidUntil": null,
      "username": "string",
      "validFrom": "2026-01-01T00:00:00.000Z"
    },
    "connection": {
      "endpoints": [
        {
          "host": "string",
          "port": 1,
          "transport": "udp"
        }
      ],
      "realm": "string"
    }
  },
  "profileVersion": 1
}

Parameters

Photon-VersionPhotonVersion

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

idstringrequired
profileIdstringrequired

Body

authenticationSipOutboundAuthenticationPolicyrequired
expectedVersionintegerrequired

Returns

200 The current outbound configuration and profile version. UpdateVoiceProfileOutboundAuthenticationResponse

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

outboundSipOutboundConfigurationrequired
profileVersionintegerrequired