Перейти к основному содержанию
POST
/
pkgs
/
{pkgId}
/
versions
Create version
curl --request POST \
  --url https://api.oquiz.net/pkgs/{pkgId}/versions \
  --header 'Authorization: <api-key>'
{
  "version": {
    "id": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "deletedAt": "2023-11-07T05:31:56Z",
    "packageId": "<string>",
    "published": true,
    "changes": {
      "categories": [
        {
          "categoryId": "<string>"
        }
      ],
      "id": "<string>",
      "i18n": {
        "name": "<string>",
        "description": "<string>",
        "image": {
          "src": "<string>",
          "color": "<string>"
        }
      },
      "name": "<string>",
      "description": "<string>",
      "image": {
        "src": "<string>",
        "color": "<string>"
      },
      "type": "<unknown>",
      "settings": {
        "multipliers": {},
        "timers": {}
      },
      "difficulty": "<unknown>",
      "rating": 123,
      "explicit": true,
      "verified": true,
      "userId": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "deletedAt": "2023-11-07T05:31:56Z"
    },
    "validation": {
      "results": [
        {
          "level": "<unknown>",
          "entity": "<unknown>",
          "id": "<string>",
          "message": "<string>"
        }
      ],
      "timestamp": 123
    }
  },
  "idMaps": {
    "rounds": {},
    "themes": {},
    "questions": {},
    "steps": {}
  }
}

Авторизации

Authorization
string
header
обязательно

Параметры пути

pkgId
string
обязательно

Ответ

201 - application/json
version
object
обязательно
idMaps
object
обязательно