---
title: "Upload a profile image"
method: POST
path: "/api/v1/profileImage"
tags: ["Profile"]
---

# Upload a profile image

`POST /api/v1/profileImage`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/profileImage`
- Auth: none declared

Uploads a profile image to local or cloud storage with security validation.

## Query parameters

- `userId` string, required
- `type` string

## Request body `multipart/form-data`

- object
  - `photo` string, binary, required: Profile image (max 5MB, JPEG/PNG/WebP/GIF)

## Response `200`

imageLink

- object

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error

---

[API](https://skmtc.dev/nife/apis/nife-io-swagger-api.md) - [All operations](https://skmtc.dev/nife/apis/nife-io-swagger-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nife/apis/nife-io-swagger-api/revisions/6e868dc62795?raw)
