Allmine API
File Upload

Upload profile photo with variants

**Production uyarisi:** Bu endpoint veri degistirir veya operasyon tetikleyebilir. API Playground icinde Production server seciliyse gercek production verisi etkilenir; test icin Development server kullanin. Upload profile photo with variants. Creates or executes file profile photo through POST /api/v1/file/profile-photo.

POST
/api/v1/file/profile-photo

Production uyarisi: Bu endpoint veri degistirir veya operasyon tetikleyebilir. API Playground icinde Production server seciliyse gercek production verisi etkilenir; test icin Development server kullanin.

Upload profile photo with variants. Creates or executes file profile photo through POST /api/v1/file/profile-photo.

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

file?string

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/file/profile-photo" \  -F file="profile-photo.jpg"
{
  "isSuccess": true,
  "statusCode": 201,
  "data": {
    "message": "Success"
  },
  "errors": [],
  "timestamp": "2026-01-15T10:30:00.000Z"
}
{
  "isSuccess": false,
  "statusCode": 400,
  "data": null,
  "errors": [
    "Validation failed"
  ],
  "timestamp": "2026-01-15T10:30:00.000Z"
}
{
  "isSuccess": false,
  "statusCode": 404,
  "data": null,
  "errors": [
    "Resource not found"
  ],
  "timestamp": "2026-01-15T10:30:00.000Z"
}
{
  "isSuccess": false,
  "statusCode": 409,
  "data": null,
  "errors": [
    "Resource already exists or cannot be changed in its current state"
  ],
  "timestamp": "2026-01-15T10:30:00.000Z"
}