curl --request PATCH \
--url https://api.oquiz.net/pkgs/{pkgId}/versions/{versionId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"pkg": {
"name": "<string>",
"categories": [
{
"categoryId": "<string>"
}
],
"description": "<string>",
"image": {
"src": "<string>",
"color": "<string>"
},
"type": "<unknown>",
"settings": {
"multipliers": {},
"timers": {}
},
"explicit": true,
"difficulty": "<unknown>"
},
"content": {
"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": 5000,
"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>"
}
]
}
}
'Update a version. To update, you must provide the complete entities of the version.
curl --request PATCH \
--url https://api.oquiz.net/pkgs/{pkgId}/versions/{versionId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"pkg": {
"name": "<string>",
"categories": [
{
"categoryId": "<string>"
}
],
"description": "<string>",
"image": {
"src": "<string>",
"color": "<string>"
},
"type": "<unknown>",
"settings": {
"multipliers": {},
"timers": {}
},
"explicit": true,
"difficulty": "<unknown>"
},
"content": {
"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": 5000,
"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>"
}
]
}
}
'Была ли эта страница полезной?