---
title: "POST /api/protected/user/profile"
method: POST
path: "/api/protected/user/profile"
tags: ["User"]
---

# POST /api/protected/user/profile

`POST /api/protected/user/profile`

## Request

- Base URL: `https://idkrx.com`
- URL: `https://idkrx.com/api/protected/user/profile`
- Auth: API key in cookie `authjs.session-token`

Record an uploaded profile image, or remove the current one

## Request body

- UserProfileUpdateRequest
  - `image` ProfileImage
    - `bucket` string, required
    - `key` string, required
    - `mimeType` 'image/jpeg' | 'image/jpg' | 'image/png' | 'image/webp', required
    - `width` integer, required
    - `height` integer, required
    - `sizeBytes` integer, required
    - `version` integer, required
  - `clearImage` boolean

## Response `200`

Profile updated

- UserProfileUpdate
  - `success` boolean, required
  - `msg` string, required
  - `data` object, required
    - `profileImageUrl` string

## Other responses

- `400`: Invalid request
- `401`: Unauthorized

---

[API](https://skmtc.dev/idkrx/apis/idkrx-api.md) · [All operations](https://skmtc.dev/idkrx/apis/idkrx-api/llms.txt) · [OpenAPI document](https://skmtc.dev/idkrx/apis/idkrx-api/revisions/086725fb5578?raw)
