Skip to main content

Overview

Updates the biography of the currently authenticated user.

Endpoint

PUT /api/profile/bio
Requires authentication. Requests are made with a Bearer token via the Authorization header.

Request

Body parameters

bio
string
required
The new biography text to set on the profile.

Response

message
string
A confirmation message indicating the bio was updated successfully.

Example

TypeScript
import { updateBio } from "./api/Profile";

const response = await updateBio({ bio: "Writer. Explorer. Space7 enthusiast." });

console.log(response.message);