Перейти к основному содержанию
GET
/
pkgs
/
{pkgId}
/
versions
Get versions
curl --request GET \
  --url https://api.oquiz.net/pkgs/{pkgId}/versions \
  --header 'Authorization: <api-key>'
[
  {
    "rounds": [
      {
        "name": "<string>",
        "id": "<string>",
        "type": "<unknown>",
        "position": 123
      }
    ],
    "themes": [
      {
        "name": "<string>",
        "id": "<string>",
        "description": "<string>",
        "position": 123,
        "roundId": "<string>"
      }
    ],
    "questions": [
      {
        "id": "<string>",
        "type": "<unknown>",
        "position": 123,
        "price": 123,
        "source": "<string>",
        "themeId": "<string>"
      }
    ],
    "steps": [
      {
        "duration": 123,
        "id": "<string>",
        "type": "<unknown>",
        "position": 123,
        "payload": {
          "media": {
            "type": "<unknown>",
            "src": "<string>",
            "color": "<string>"
          },
          "backgroundMedia": {
            "type": "<unknown>",
            "src": "<string>",
            "duration": 123
          },
          "text": "<string>",
          "caption": "<string>",
          "variants": [
            "<string>"
          ]
        },
        "questionId": "<string>"
      }
    ],
    "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
    }
  }
]

Авторизации

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

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

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

Ответ

200 - application/json
rounds
object[]
обязательно
themes
object[]
обязательно
questions
object[]
обязательно
steps
object[]
обязательно
id
string
обязательно
createdAt
string<date-time>
обязательно
updatedAt
string<date-time>
обязательно
deletedAt
null | string<date-time>
обязательно
packageId
string
обязательно
published
boolean
обязательно
changes
object
обязательно
validation
object
обязательно