Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.discovr.media/llms.txt

Use this file to discover all available pages before exploring further.

Updates an existing profile. You can update the profile name, avatar URL, or both. Editable Fields:
  • name: The display name of the profile
  • avatarUrl: The URL of the profile avatar image
Read-only Fields:
  • id: Profile identifier (cannot be changed)
  • userId: Owner of the profile (cannot be changed)
  • createdAt: Creation timestamp (cannot be changed)
At least one editable field must be provided in the request body.

Parameters

NameTypeRequiredDescription
profileIdstringYesThe unique identifier of the profile to update
namestringNoThe new display name for the profile. Must be a non-empty string if provided. At least one field (name or avatarUrl) must be provided.
avatarUrlstring (uri)NoThe new URL of the profile avatar image. Must be a non-empty string if provided. At least one field (name or avatarUrl) must be provided.

Returns

Profile — Profile updated successfully
{
  "id": "string",
  "name": "string",
  "avatarUrl": "string" /* uri */,
  "createdAt": "string" /* date-time */
}

Example

import { DiscovrClient } from "discovr";
import type { Profile, UpdateProfilePayload } from "discovr";

const discovr = new DiscovrClient("your-client-id", {
  basePath: "https://api.discovr.media",
});

// After sign-in and profile selection …
const response: Profile = await discovr.updateProfile("profile_abc123xyz", { name: "Action Movie Fan", avatarUrl: "https://example.com/new-avatar.jpg" });
console.log(response);