Skip to content

PATCH /v1/projects/{projectId}/agent-profile

Updates the supplied firstName and lastName fields in the project's agent profile and returns the updated profile. Avatar upload, commit and reset are separate operations. The caller must be authorized to change configuration for the selected project. Supply the required Idempotency-Key header.

photon.projects.agentProfile.update(input: UpdateAgentProfileInput, options?: RequestOptions): Promise<UpdateAgentProfileOutput>
import { Photon } from "@photon-ai/api";

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.agentProfile.update({
  path: {
    projectId: "projectId",
  },
  headers: {
    idempotencyKey: "idempotencyKey",
  },
  body: {},
});
{
  "avatarUrl": "https://example.com",
  "firstName": "string",
  "lastName": null
}

Parameters

Photon-VersionPhotonVersion

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

Idempotency-Keystringrequired

Identifies one logical mutation across retries.

projectIdstringrequired

Body

firstNamestring
lastNamestring | null

Returns

200 The updated agent profile. AgentProfile

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

avatarUrlstring (uri)required
firstNamestringrequired
lastNamestring | nullrequired