Allmine API
Premium Content

Premium içeriği güncelle

**Production uyarisi:** Bu endpoint veri degistirir veya operasyon tetikleyebilir. API Playground icinde Production server seciliyse gercek production verisi etkilenir; test icin Development server kullanin. Premium içeriği güncelle. Updates premium content through PATCH /api/v1/premium-content/{id}.

PATCH
/api/v1/premium-content/{id}

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

Premium içeriği güncelle. Updates premium content through PATCH /api/v1/premium-content/{id}.

Authorization

JWT-auth
AuthorizationBearer <token>

Paste the JWT access token without the Bearer prefix.

In: header

Path Parameters

id*string

Premium içerik ID'si

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/api/v1/premium-content/string" \  -F price="250" \  -F order="1" \  -F originalUrl="https://cdn.example.com/sample.jpg" \  -F previewUrl="https://cdn.example.com/sample.jpg" \  -F file="profile-photo.jpg"
{
  "isSuccess": true,
  "statusCode": 200,
  "data": {
    "_id": "65a1234bcde5678f90123456",
    "owner": "659abcdeff11223344556677",
    "ownerDetails": {
      "_id": "659abcdeff11223344556677",
      "username": "johndoe",
      "name": "John",
      "surname": "Doe",
      "email": "[email protected]"
    },
    "previewUrl": "https://cdn.example.com/media/abc123-blur.webp",
    "originalUrl": "https://cdn.example.com/media/abc123.jpg",
    "price": 250,
    "order": 1,
    "createdAt": "2024-01-15T10:30:00.000Z",
    "updatedAt": "2024-01-15T12:30:00.000Z"
  },
  "errors": [],
  "timestamp": "2026-05-22T16:11:27.642Z"
}
{
  "isSuccess": false,
  "statusCode": 400,
  "data": null,
  "errors": [
    "Validation failed"
  ],
  "timestamp": "2026-01-15T10:30:00.000Z"
}
{
  "isSuccess": false,
  "statusCode": 401,
  "data": null,
  "errors": [
    "Authentication required"
  ],
  "timestamp": "2026-01-15T10:30:00.000Z"
}
{
  "isSuccess": false,
  "statusCode": 403,
  "data": null,
  "errors": [
    "Insufficient permissions"
  ],
  "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"
}