Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sam-shervin/space7/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Uploads a new profile picture for the currently authenticated user. The request body must be sent asmultipart/form-data with a field named avatar.
The fetchWithAuth helper automatically omits the Content-Type header when the request body is a FormData instance, allowing the browser or native runtime to set the correct multipart/form-data boundary.
Endpoint
Requires authentication. Requests are made with a Bearer token via the
Authorization header.Request
Send the image as amultipart/form-data upload using a FormData field named avatar.
Body parameters
The image file to upload, appended to FormData as the
avatar field.Response
URL of the newly uploaded profile picture.
Example
TypeScript
