Методы API, помеченные SEARCHABLE могут принимать параметры фильтрации и разбивки выдачи на страницы. Пример формирования query string фильтров:
SELECT [...]
WHERE
created >= '2020-06-01'
AND created <= '2020-06-30'
AND operation IN ('RESERVE', 'SELL')
//created[ge]=2020-06-01&created[le]=2020-06-30&operation[eq][]=RESERVE&operation[eq][]=SELL
var qs = require('qs');
const filter = {
created: {
ge: '2020-06-01',
le: '2020-06-30',
},
operation: {
eq: ['RESERVE', 'SELL'],
}
};
function format(c){
console.log(qs.stringify(filter, {...c, encode: false, allowDots: false }));
}
format({ arrayFormat: 'brackets' });
SELECT [...]
WHERE
nickname LIKE 'test%'
OR phone LIKE '7900%'
//-or[phone][like]=7900%&-or[nickname][like]=test%
[...]
const filter = {
'-or': {
phone: { like: '7900%' } ,
nickname: { like: 'test%' },
}
};
[...]
В фильтрах могут участвовать любые поля объекта, выдаваемого методом. Поддерживаются следующие операции фильтрации:
{
eq => '=', # точное совпадение
ne => '!=', # исключение
lt => '<', # меньше
gt => '>', # больше
le => '<=', # меньше или равно
ge => '>=', # больше или равно
like => 'LIKE', # поиск по подстроке
ilike => 'ILIKE', # поиск по подстроке без учета регистра
inArray => '&&', # поиск в массиве
}
Параметры пагинации указаны в описании метода.
SEARCHABLE
Поиск наград
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "awards": [
- {
- "id": 2147483647,
- "name": "string",
- "icon": "string",
- "comment": "string",
- "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "user": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "holders": 2147483647,
- "created": "2019-08-24T14:15:22Z"
}
], - "records": 2147483647
}SEARCHABLE
Поиск наград
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "awards": [
- {
- "id": 2147483647,
- "name": "string",
- "icon": "string",
- "comment": "string",
- "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "user": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "holders": 2147483647,
- "created": "2019-08-24T14:15:22Z"
}
], - "records": 2147483647
}SEARCHABLE
Поиск наград
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "values": [
- {
- "id": 2147483647,
- "name": "string",
- "description": "string",
- "icon": "string",
- "task": "string",
- "value": "string",
- "value_period": "string",
- "value_type": "int",
- "unit": "string",
- "is_record_holder": false,
- "is_period_record_holder": false,
- "was_record_holder": false,
- "was_period_record_holder": false,
- "created": "2019-08-24T14:15:22Z",
- "created_period": "2019-08-24T14:15:22Z"
}
], - "records": 2147483647
}SEARCHABLE
Поиск рекордов
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "values": [
- {
- "id": 2147483647,
- "value": "string",
- "value_type": "int",
- "unit": "string",
- "user": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "created": "2019-08-24T14:15:22Z"
}
], - "records": 2147483647
}SEARCHABLE
Поиск рекордов
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "values": [
- {
- "id": 2147483647,
- "value": "string",
- "value_type": "int",
- "unit": "string",
- "user": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "created": "2019-08-24T14:15:22Z"
}
], - "records": 2147483647
}SEARCHABLE
Поиск достижений
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "ratings": [
- {
- "id": 2147483647,
- "name": "string",
- "icon": "string",
- "steps": [
- "string"
], - "unit": "string",
- "description": "string",
- "value": "string",
- "value_period": "string",
- "value_type": "int",
- "rank": 1,
- "rank_city": 1,
- "rank_period": 1,
- "rank_city_period": 1,
- "updated": "2019-08-24T14:15:22Z"
}
], - "records": 2147483647
}SEARCHABLE
Список цветов
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "colors": [
- {
- "id": 2147483647,
- "name": "string",
- "dark": "stringst",
- "light": "stringst"
}
], - "records": 2147483647
}Пожаловаться на контент
| user_id | integer or null <int32> (Id-wo) [ 0 .. 2147483647 ] Id |
| team_id | integer or null <int32> (Id-wo) [ 0 .. 2147483647 ] Id |
object |
{- "user_id": 2147483647,
- "team_id": 2147483647,
- "feedback": {
- "game_id": 2147483647
}
}{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}SEARCHABLE
Поиск игр
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "games": [
- {
- "id": 2147483647,
- "city": {
- "id": 2147483647,
- "name": "string",
- "region": "string",
- "name_local": "string"
}, - "name": "This Is The Game",
- "schema": "LINEAR",
- "start": "2019-08-24T14:15:22Z",
- "enroll_until": "2019-08-24T14:15:22Z",
- "description": "string",
- "social_text": "string",
- "timing": "2-4 hours",
- "timing_for": "Leaders",
- "mileage": 50,
- "max_players": 1,
- "cost": 1500,
- "cost_qq": 1000000,
- "cost_loyalty": 1000000,
- "cost_discounted": 1000000,
- "cost_discounted_end": "2019-08-24T14:15:22Z",
- "tags": [
- "PHOTO"
], - "transport": "NONE",
- "created": "2019-08-24T14:15:22Z",
- "owner": 2147483647,
- "authors": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "owner": false,
- "rating": {
- "total_games": {
- "real": 1000000,
- "virtual": 1000000
}, - "games_written": {
- "real": 1000000,
- "virtual": 1000000
}, - "feedback": {
- "real": 5,
- "virtual": 5
}, - "feedback_full": {
- "real": 5,
- "virtual": 5
}
}
}
], - "briefing_geo": "(56.129129,40.408397)",
- "briefing_time": "2019-08-24T14:15:22Z",
- "briefing_txt": "string",
- "published": false,
- "score": 5,
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "start_type": "manual",
- "hints": [
- {
- "id": 2147483647,
- "title": "string",
- "icon": "string",
- "description": "string"
}
], - "testing": false,
- "running": false,
- "start_in": 2147483647,
- "enroll_closes_in": 2147483647,
- "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "feedback": {
- "metrics": [
- {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}
], - "feedback": "string",
- "user": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "created": "2019-08-24T14:15:22Z"
}, - "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "teams": [
- {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}
], - "teams_count": 1000000,
- "teams_limit": 1024,
- "started_ago": 2147483647,
- "closed": true,
- "closed_at": "2019-08-24T14:15:22Z",
- "metrics": [
- {
- "metric": "THINK",
- "score": 5
}, - {
- "metric": "THINK",
- "score": 5
}, - {
- "metric": "THINK",
- "score": 5
}
], - "stat": "VISIBLE",
- "rank_type": "TIME",
- "rank_value": "TIME",
- "objectivity": 1,
- "rank_var_1": 2147483647,
- "rank_sort_1": "ASC",
- "rank_var_2": 2147483647,
- "rank_sort_2": "ASC",
- "early_birds_global": true,
- "screenplay_public": true,
- "social_messaging": {
- "ig": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "tg": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "vk": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "push": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}
}, - "saved_at": {
- ".sv": "timestamp"
}, - "charge_type": "TEAM",
- "franchise_id": 2147483647,
- "payment_methods": [
- "sberbank"
], - "order": {
- "qq": 1500,
- "fiat": 1500,
- "cash": 1000000,
- "discount": 1500,
- "deposit": 1500,
- "players": 1000,
- "slots": 100,
- "created": "2019-08-24T14:15:22Z",
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "team": "string",
- "team_id": 2147483647,
- "user": "crux",
- "used": 1000000,
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise_id": 2147483647,
- "logic": "simple"
}, - "author_cash": 1000000,
- "paid_to_author": 1000000,
- "referral": 1000000,
- "own_referral": 1000000,
- "service": 1000000
}
}
], - "records": 2147483647
}Регистрация
| phone required | string (Phone) [ 7 .. 15 ] characters ^\d{7,15}$ Номер телефона |
| nickname | string or null (Nickname) [ 3 .. 32 ] characters ^[\][A-Za-z.А-Яа-яЁё_=-]+[\][*A-Za-z0-9.А-Яа-... Ник |
| password | string [ 2 .. 32 ] characters [\p{Print}]* Пароль |
| referrer | string or null [ 2 .. 11 ] characters ^[A-Za-z]{2,}$|^\d{7,15}$ Реферальный код |
| city_id | integer or null <int32> (Id-wo) [ 0 .. 2147483647 ] Id |
| notify | boolean or null Default: false Получать уведомления от сервиса. |
| tg_data | string or null [ 0 .. 8192 ] characters [\p{Print}]* Данные пользователя при авторизации через Telegram. |
| channel | string Enum: "flashCall" "sms" Желаемый канал передачи кода подверждения. |
{- "phone": "79123456789",
- "nickname": "crux",
- "password": "string",
- "referrer": "string",
- "city_id": 2147483647,
- "notify": false,
- "tg_data": "string",
- "channel": "flashCall"
}{- "token": "string"
}Профиль пользователя
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
{- "id": 2147483647,
- "phone": "79123456789",
- "nickname": "crux",
- "created": "2019-08-24T14:15:22Z",
- "roles": [
- "AUTHOR"
], - "balance": -1000000,
- "phone_code": 1000,
- "refcode": "string",
- "referrer": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "activity": {
- "player": 1,
- "author": {
- "real": {
- "feedback": 5,
- "teams_count": 5,
- "games_written": 5
}, - "virtual": {
- "feedback": 5,
- "teams_count": 5,
- "games_written": 5
}
}
}, - "city": {
- "id": 2147483647,
- "name": "string",
- "region": "string",
- "name_local": "string"
}, - "notify": false,
- "delete_me": "2019-08-24T14:15:22Z",
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "active": true,
- "vk_profile": {
- "userId": 2147483647,
- "firstName": "string",
- "lastName": "string",
- "balance": 1000000
}, - "has_password": false,
- "settings": {
- "ref_to_author": false
}, - "rdb_token": "string"
}{- "id": 2147483647,
- "phone": "79123456789",
- "nickname": "crux",
- "created": "2019-08-24T14:15:22Z",
- "roles": [
- "AUTHOR"
], - "balance": -1000000,
- "phone_code": 1000,
- "refcode": "string",
- "referrer": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "activity": {
- "player": 1,
- "author": {
- "real": {
- "feedback": 5,
- "teams_count": 5,
- "games_written": 5
}, - "virtual": {
- "feedback": 5,
- "teams_count": 5,
- "games_written": 5
}
}
}, - "city": {
- "id": 2147483647,
- "name": "string",
- "region": "string",
- "name_local": "string"
}, - "notify": false,
- "delete_me": "2019-08-24T14:15:22Z",
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "active": true,
- "vk_profile": {
- "userId": 2147483647,
- "firstName": "string",
- "lastName": "string",
- "balance": 1000000
}, - "has_password": false,
- "settings": {
- "ref_to_author": false
}, - "rdb_token": "string"
}Обновление профиля пользователя
| nickname | string or null (Nickname) [ 3 .. 32 ] characters ^[\][A-Za-z.А-Яа-яЁё_=-]+[\][*A-Za-z0-9.А-Яа-... Ник |
| password | string <password> [ 2 .. 32 ] characters .{2,32} Пароль |
| city_id | integer or null <int32> (Id-wo) [ 0 .. 2147483647 ] Id |
| notify | boolean Default: false Получать уведомления от сервиса. |
| delete_me | boolean
|
| fcm_token | string [ 0 .. 1024 ] characters FCM Token |
object or null (VKProfile) | |
| referrer | string or null [ 2 .. 11 ] characters ^[A-Za-z]{2,}$ Реферальный код |
object or null (UserSettings) Пользовательские настройки. |
{- "nickname": "crux",
- "password": "pa$$word",
- "city_id": 2147483647,
- "notify": false,
- "delete_me": true,
- "fcm_token": "string",
- "vk_profile": {
- "userId": 2147483647,
- "firstName": "string",
- "lastName": "string",
- "balance": 1000000
}, - "referrer": "string",
- "settings": {
- "ref_to_author": false
}
}{- "id": 2147483647,
- "phone": "79123456789",
- "nickname": "crux",
- "created": "2019-08-24T14:15:22Z",
- "roles": [
- "AUTHOR"
], - "balance": -1000000,
- "phone_code": 1000,
- "refcode": "string",
- "referrer": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "activity": {
- "player": 1,
- "author": {
- "real": {
- "feedback": 5,
- "teams_count": 5,
- "games_written": 5
}, - "virtual": {
- "feedback": 5,
- "teams_count": 5,
- "games_written": 5
}
}
}, - "city": {
- "id": 2147483647,
- "name": "string",
- "region": "string",
- "name_local": "string"
}, - "notify": false,
- "delete_me": "2019-08-24T14:15:22Z",
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "active": true,
- "vk_profile": {
- "userId": 2147483647,
- "firstName": "string",
- "lastName": "string",
- "balance": 1000000
}, - "has_password": false,
- "settings": {
- "ref_to_author": false
}, - "rdb_token": "string"
}Получить профиль пользователя по никнейму. Может быть использован для проверки уникальности никнейма.
| nickname required | string [ 3 .. 32 ] characters ^[\][A-Za-z0-9.А-Яа-яЁё_=-]+[\][*A-Za-z0-9.А-... Example: crux |
{- "id": 2147483647,
- "nickname": "crux",
- "balance": -1000000,
- "created": "2019-08-24T14:15:22Z",
- "roles": [
- "AUTHOR"
], - "refcode": "string",
- "activity": {
- "player": 1,
- "author": {
- "real": {
- "feedback": 5,
- "teams_count": 5,
- "games_written": 5
}, - "virtual": {
- "feedback": 5,
- "teams_count": 5,
- "games_written": 5
}
}
}, - "city": {
- "id": 2147483647,
- "name": "string",
- "region": "string",
- "name_local": "string"
}, - "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "referrer": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "phone": "79123456789",
- "active": true
}Проверка уникальности номера телефона.
| phone required | string [ 7 .. 15 ] characters ^\d{7,15}$ Example: 79123456789 |
{- "id": 2147483647,
- "nickname": "crux",
- "balance": -1000000,
- "created": "2019-08-24T14:15:22Z",
- "roles": [
- "AUTHOR"
], - "refcode": "string",
- "activity": {
- "player": 1,
- "author": {
- "real": {
- "feedback": 5,
- "teams_count": 5,
- "games_written": 5
}, - "virtual": {
- "feedback": 5,
- "teams_count": 5,
- "games_written": 5
}
}
}, - "city": {
- "id": 2147483647,
- "name": "string",
- "region": "string",
- "name_local": "string"
}, - "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "referrer": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "phone": "79123456789",
- "active": true
}Получить профиль пользователя по реферальному коду. Может быть использован для проверки реферального кода.
| refcode required | string [ 2 .. 11 ] characters ^[A-Za-z]{2,}$|^\d{7,15}$ |
{- "id": 2147483647,
- "nickname": "crux",
- "balance": -1000000,
- "created": "2019-08-24T14:15:22Z",
- "roles": [
- "AUTHOR"
], - "refcode": "string",
- "activity": {
- "player": 1,
- "author": {
- "real": {
- "feedback": 5,
- "teams_count": 5,
- "games_written": 5
}, - "virtual": {
- "feedback": 5,
- "teams_count": 5,
- "games_written": 5
}
}
}, - "city": {
- "id": 2147483647,
- "name": "string",
- "region": "string",
- "name_local": "string"
}, - "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "referrer": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "phone": "79123456789",
- "active": true
}Подтверждение номера телефона кодом из SMS
| code required | integer <int32> (SMSCode) [ 1000 .. 9999 ] Код из SMS |
{- "code": 1234
}{- "id": 2147483647,
- "phone": "79123456789",
- "nickname": "crux",
- "created": "2019-08-24T14:15:22Z",
- "roles": [
- "AUTHOR"
], - "balance": -1000000,
- "phone_code": 1000,
- "refcode": "string",
- "referrer": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "activity": {
- "player": 1,
- "author": {
- "real": {
- "feedback": 5,
- "teams_count": 5,
- "games_written": 5
}, - "virtual": {
- "feedback": 5,
- "teams_count": 5,
- "games_written": 5
}
}
}, - "city": {
- "id": 2147483647,
- "name": "string",
- "region": "string",
- "name_local": "string"
}, - "notify": false,
- "delete_me": "2019-08-24T14:15:22Z",
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "active": true,
- "vk_profile": {
- "userId": 2147483647,
- "firstName": "string",
- "lastName": "string",
- "balance": 1000000
}, - "has_password": false,
- "settings": {
- "ref_to_author": false
}, - "rdb_token": "string"
}SEARCHABLE
Список наград
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "awards": [
- {
- "id": 2147483647,
- "name": "string",
- "icon": "string",
- "comment": "string",
- "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "user": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "holders": 2147483647,
- "created": "2019-08-24T14:15:22Z"
}
], - "records": 2147483647
}SEARCHABLE
Список рейтингов
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "ratings": [
- {
- "id": 2147483647,
- "name": "string",
- "icon": "string",
- "steps": [
- "string"
], - "unit": "string",
- "description": "string",
- "value": "string",
- "value_period": "string",
- "value_type": "int",
- "rank": 1,
- "rank_city": 1,
- "rank_period": 1,
- "rank_city_period": 1,
- "updated": "2019-08-24T14:15:22Z"
}
], - "records": 2147483647
}SEARCHABLE
Список рекордов
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "values": [
- {
- "id": 2147483647,
- "name": "string",
- "description": "string",
- "icon": "string",
- "task": "string",
- "value": "string",
- "value_period": "string",
- "value_type": "int",
- "unit": "string",
- "is_record_holder": false,
- "is_period_record_holder": false,
- "was_record_holder": false,
- "was_period_record_holder": false,
- "created": "2019-08-24T14:15:22Z",
- "created_period": "2019-08-24T14:15:22Z"
}
], - "records": 2147483647
}SEARCHABLE
Список сохранённых промокодов
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "promocodes": [
- {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}
], - "records": 2147483647
}Привязка промокода к учётной записи.
| promocode required | string or null (Promocode) [ 1 .. 64 ] characters [A-Za-zА-Яа-яЁё0-9-.]+ Промокод |
{- "promocode": "NEWBIE"
}{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}{- "logic": "regex",
- "args": {
- "regex": "string"
}, - "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}
}Передача промокода другому игроку.
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| to required | integer or null <int32> (Id-wo) [ 0 .. 2147483647 ] Id |
{- "to": 2147483647
}{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}Перевод средств другому участнику
| amount required | number <float> [ 1 .. 1000000 ] Сумма пополнения |
| to required | integer or null <int32> (Id-wo) [ 0 .. 2147483647 ] ID получателя. |
{- "amount": 1,
- "to": 2147483647
}{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}Создаёт запрос на вывод средств.
Параметры вывода.
| amount | number <float> [ 1000 .. 1000000 ] Сумма вывода. |
{- "amount": 1000
}{ }Отправка номера для которого нужно повторить отправку кода подтверждения операции.
| phone required | string (Phone) [ 7 .. 15 ] characters ^\d{7,15}$ Номер телефона |
| channel required | string Enum: "sms" "flashCall" |
{- "phone": "79123456789",
- "channel": "sms"
}{- "phone_code": 1234
}Отправка номера для которого нужно повторить отправку кода подтверждения операции.
| phone required | string (Phone) [ 7 .. 15 ] characters ^\d{7,15}$ Номер телефона |
{- "phone": "79123456789"
}{- "phone_code": 1234
}Отправка номера для которого нужно восстановить пароль.
| phone required | string (Phone) [ 7 .. 15 ] characters ^\d{7,15}$ Номер телефона |
{- "phone": "79123456789"
}{- "phone_code": 1234
}Проверка кода из SMS.
| phone required | string (Phone) [ 7 .. 15 ] characters ^\d{7,15}$ Номер телефона |
| phone_code required | integer <int32> (SMSCode) [ 1000 .. 9999 ] Код из SMS |
{- "phone": "79123456789",
- "phone_code": 1234
}{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}Установка нового пароля.
| phone required | string (Phone) [ 7 .. 15 ] characters ^\d{7,15}$ Номер телефона |
| phone_code required | integer <int32> (SMSCode) [ 1000 .. 9999 ] Код из SMS |
| password required | string [ 2 .. 32 ] characters [\p{Print}]* Новый пароль |
{- "phone": "79123456789",
- "phone_code": 1234,
- "password": "1234Qq"
}{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}{- "orders": [
- {
- "id": 2147483647,
- "user": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "amount": 1,
- "status": "NEW",
- "created": "2019-08-24T14:15:22Z"
}
], - "records": 2147483647
}Детализация текущей активности и история изменения.
{- "globals": {
- "real_games_passed": 1000000,
- "virtual_games_passed": 1000000,
- "virtual_games_average": 1000000
}, - "player": {
- "referrals": {
- "rate": 1,
- "avg": 1000000,
- "count": 1000000
}, - "games_played": {
- "rate": 1,
- "real": 1000000,
- "real_away": 1000000,
- "virtual": 1000000,
- "rate_real": 1,
- "rate_virtual": 1
}, - "games_written": {
- "real": 1000000,
- "virtual": 1000000
}
}, - "author": { },
- "log": [
- {
- "player": 1,
- "author": { },
- "created": "2019-08-24"
}
]
}SEARCHABLE
Список операций по балансу кукух.
{- "log": [
- {
- "id": 2147483647,
- "amount": -1000000,
- "type": "REFERRAL",
- "referral": "crux",
- "team": "string",
- "created": "2019-08-24T14:15:22Z",
- "game": {
- "name": "string",
- "date": "2019-08-24"
}, - "order": {
- "qq": 1500,
- "fiat": 1500,
- "cash": 1000000,
- "discount": 1500,
- "deposit": 1500,
- "players": 1000,
- "slots": 100,
- "created": "2019-08-24T14:15:22Z",
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "team": "string",
- "team_id": 2147483647,
- "user": "crux",
- "used": 1000000,
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise_id": 2147483647,
- "logic": "simple"
}, - "author_cash": 1000000,
- "paid_to_author": 1000000,
- "referral": 1000000,
- "own_referral": 1000000,
- "service": 1000000
}, - "pay_data": {
- "activity": 15,
- "pay_rate": 1
}, - "withdraw_status": "NEW"
}
], - "records": 2147483647
}SEARCHABLE
Список партнёров, под приглашениями пользователя, с суммарной информацией о полученных кукухах.
{- "referrals": [
- {
- "id": 2147483647,
- "depth": 10,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "amount": 1000000,
- "nickname": "crux",
}
], - "records": 2147483647
}SEARCHABLE
Поиск команд
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "teams": [
- {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}
], - "records": 2147483647
}Создание команды
| name required | string [ 3 .. 64 ] characters [\p{Print}]* Название команды |
| active | boolean Default: true Отображается при поиске. |
| checked | boolean Default: false Отметка команды. Проставляется автором в рамках игры. |
| avatar | string or null <uri> (URL) [ 0 .. 2048 ] characters ^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[%\w... |
Array of objects or null (Id_Nickname) [ 0 .. 100 ] items Состав команды на игре | |
| deferred_pay | boolean Default: false Отложенная оплата |
| slots | integer [ 0 .. 100 ] Количество оплаченных слотов при тарификации за игрока. |
| had_game_access | integer or null <int32> [ 0 .. 100 ] Количество игроков, имевших доступ к игре во время проведения. |
{- "name": "string",
- "active": true,
- "checked": false,
- "lineup": [
- {
- "nickname": "crux",
- "captain": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "had_game_access": 100
}{- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}Передача команды другому игроку.
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| captain required | integer or null <int32> (Id-wo) [ 0 .. 2147483647 ] Id |
{- "captain": 2147483647
}{- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}Загрузка аватара команды
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
Аватар команды
{
}Информация о команде
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| game_id | integer <int32> [ 1 .. 2147483647 ] ID квеста для получения состава команды |
{- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}Редактирование команды
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| name required | string [ 3 .. 64 ] characters [\p{Print}]* Название команды |
| active | boolean Default: true Отображается при поиске. |
| checked | boolean Default: false Отметка команды. Проставляется автором в рамках игры. |
| avatar | string or null <uri> (URL) [ 0 .. 2048 ] characters ^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[%\w... |
Array of objects or null (Id_Nickname) [ 0 .. 100 ] items Состав команды на игре | |
| deferred_pay | boolean Default: false Отложенная оплата |
| slots | integer [ 0 .. 100 ] Количество оплаченных слотов при тарификации за игрока. |
| had_game_access | integer or null <int32> [ 0 .. 100 ] Количество игроков, имевших доступ к игре во время проведения. |
{- "name": "string",
- "active": true,
- "checked": false,
- "lineup": [
- {
- "nickname": "crux",
- "captain": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "had_game_access": 100
}{- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}Удаление команды. Удалять можно только команды с признаком deletable.
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}SEARCHABLE
Список своих команд
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "teams": [
- {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}
], - "records": 2147483647
}| id required | integer <int32> (Id) [ 0 .. 2147483647 ] Id |
| city_id | integer or null <int32> (Id-wo) [ 0 .. 2147483647 ] Id |
object or null (City) Город | |
| name required | string [ 3 .. 180 ] characters [\p{Print}]* Название игры |
| schema | string Default: "LINEAR" Enum: "LINEAR" "RANDOM" "ALL" "CUSTOM" Схема выдачи заданий. |
| start required | string or null <date-time> (DateTimeTZ) <= 32 characters Дата и время, с таймзоной |
| enroll_until | string or null <date-time> (DateTimeTZ) <= 32 characters Дата и время, с таймзоной |
| description | string or null [ 0 .. 32768 ] characters [\p{Print}]* Описание игры |
| social_text | string or null [ 0 .. 16384 ] characters [\p{Print}]* Текст для соцсетей |
| timing | string or null [ 0 .. 64 ] characters [\p{Print}]* Ожидаемое время прохождения. |
| timing_for | string or null [ 0 .. 64 ] characters [\p{Print}]* На кого рассчитано ожидаемое время прохождения |
| mileage | integer or null <int32> [ 0 .. 40075 ] Минимальный пробег на игре в километрах. |
| max_players required | integer <int32> [ 1 .. 100 ] Максимальное количество игроков в команде. |
| cost required | number <float> [ 0 .. 1000000 ] Стоимость участия в рублях. |
| cost_qq | number or null <float> [ 0 .. 1000000 ] Сумма, которая будет оплачена кукухами. |
| cost_loyalty | number or null <float> [ 0 .. 1000000 ] Deprecated Стоимость с учетом оплаты кукухами. |
| cost_discounted | number or null <float> [ 0 .. 1000000 ] Стоимость со скидкой за раннюю регистрацию |
| cost_discounted_end | string or null <date-time> (DateTimeTZ-RO) <= 34 characters Дата и время, с таймзоной, только чтение |
| tags required | Array of strings (GameTag) [ 1 .. 7 ] items unique Items Enum: "PHOTO" "BRAIN" "COMBAT" "SNOOP" "TOUR" "MAZE" "STREET" "URBAN" Типы игры |
| transport required | string (GameTransport) Enum: "NONE" "ANY" "CAR" "FOOT" "BIKE" Средство передвижения |
| created required | string or null <date-time> (DateTimeTZ-RO) <= 34 characters Дата и время, с таймзоной, только чтение |
| owner | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
Array of objects (GameAuthor) [ 0 .. 32 ] items unique | |
| briefing_geo | string or null (GeoPoint) [ 5 .. 26 ] characters ^\((-?\d+\.\d+),(-?\d+\.\d+)\)$ Точка на карте |
| briefing_time | string or null <date-time> (DateTimeTZ) <= 32 characters Дата и время, с таймзоной |
| briefing_txt | string or null [ 0 .. 1024 ] characters [\p{Print}]* Место предыгрового брифинга |
| published | boolean Default: false Игра доступна для поиска и регистрации. |
| score | number or null <float> [ 0 .. 5 ] Средняя оценка. |
| uuid | string <uuid> = 36 characters ^[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{... Уникальный идентификатор игры |
| splash | string or null <uri> [ 0 .. 2000 ] characters ^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[%\w... Ссылка на картинку анонса |
| start_type | string Default: "auto" Enum: "manual" "auto" "team" Ручной или автоматический старт игры |
Array of objects or null (GameHint) [ 0 .. 32 ] items Раздел подготовки к квесту. | |
| testing required | boolean Default: false Запущено тестирование автором. |
| running required | boolean Default: false Игра запущена |
| start_in required | integer <int32> [ 0 .. 2147483647 ] Время в секундах, через которое стартует игра |
| enroll_closes_in | integer or null <int32> [ 0 .. 2147483647 ] Время в секундах, через которое закрывается регистрация, если она ограничена. |
object or null (Team) Команда | |
object or null (GameFeedback) | |
Array of objects or null (Id_Nickname) [ 0 .. 1000 ] items unique Состав команды | |
Array of objects or null (Team) [ 0 .. 1000 ] items Команды, участвующие в игре. Список всегда пуст для игр с запуском по требованию. | |
| teams_count | integer <int32> [ 0 .. 1000000 ] Количество команд, принявших участие. |
| teams_limit | integer or null <int32> [ 0 .. 1024 ] Максимальное количество команд. |
| started_ago required | integer <int32> [ 0 .. 2147483647 ] Количество секунд, прошедших со старта квеста. |
| closed | boolean Игра закрыта |
| closed_at | string or null <date-time> (DateTimeTZ-RO) <= 34 characters Дата и время, с таймзоной, только чтение |
Array of objects or null (GameMetricAvg) = 3 items Итоговые оценки за квест по критериям. | |
| stat | string (GameStatVisibility) Enum: "VISIBLE" "OWN" "PASSED" "HIDDEN" Видимость статистики |
| rank_type | string (GameRankType) Enum: "TIME" "LEVELS" "GAME" "CUSTOM" "SCORE" Метод расстановки мест. |
| rank_value | string (GameRankValue) Enum: "TIME" "SCORE" Игра на время или на баллы. |
| objectivity | number or null <float> [ 0 .. 1 ] Доля поставивших оценку. |
| rank_var_1 | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| rank_sort_1 | string or null (GameRankSort) Enum: "ASC" "DESC" |
| rank_var_2 | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| rank_sort_2 | string or null (GameRankSort) Enum: "ASC" "DESC" |
| early_birds_global | boolean or null Default: true Применяются глобальные настройки скидок за раннюю регистрацию. |
| screenplay_public | boolean or null Default: true Просмотр сценария доступен игрокам после закрытия игры. |
object or null (GameSocialMessagingData) Данные для каналов оповещения. Доступно для автора. | |
object (RDBTimestamp) | |
| charge_type | string (GameChargeType) Enum: "TEAM" "PLAYER" Оплата за участника или за команду. |
| franchise_id | integer or null <int32> (Id-nullable) [ 0 .. 2147483647 ] Id-nullable |
| payment_methods | Array of strings or null (PaymentType) [ 0 .. 100 ] items Enum: "sberbank" "tochka" "yoomoney" "cash" |
object or null (BalanceLogItemOrder) Данные заказа регистрации. |
{- "id": 2147483647,
- "city": {
- "id": 2147483647,
- "name": "string",
- "region": "string",
- "name_local": "string"
}, - "name": "This Is The Game",
- "schema": "LINEAR",
- "start": "2019-08-24T14:15:22Z",
- "enroll_until": "2019-08-24T14:15:22Z",
- "description": "string",
- "social_text": "string",
- "timing": "2-4 hours",
- "timing_for": "Leaders",
- "mileage": 50,
- "max_players": 1,
- "cost": 1500,
- "cost_qq": 1000000,
- "cost_loyalty": 1000000,
- "cost_discounted": 1000000,
- "cost_discounted_end": "2019-08-24T14:15:22Z",
- "tags": [
- "PHOTO"
], - "transport": "NONE",
- "created": "2019-08-24T14:15:22Z",
- "owner": 2147483647,
- "authors": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "owner": false,
- "rating": {
- "total_games": {
- "real": 1000000,
- "virtual": 1000000
}, - "games_written": {
- "real": 1000000,
- "virtual": 1000000
}, - "feedback": {
- "real": 5,
- "virtual": 5
}, - "feedback_full": {
- "real": 5,
- "virtual": 5
}
}
}
], - "briefing_geo": "(56.129129,40.408397)",
- "briefing_time": "2019-08-24T14:15:22Z",
- "briefing_txt": "string",
- "published": false,
- "score": 5,
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "start_type": "manual",
- "hints": [
- {
- "id": 2147483647,
- "title": "string",
- "icon": "string",
- "description": "string"
}
], - "testing": false,
- "running": false,
- "start_in": 2147483647,
- "enroll_closes_in": 2147483647,
- "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "feedback": {
- "metrics": [
- {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}
], - "feedback": "string",
- "user": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "created": "2019-08-24T14:15:22Z"
}, - "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "teams": [
- {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}
], - "teams_count": 1000000,
- "teams_limit": 1024,
- "started_ago": 2147483647,
- "closed": true,
- "closed_at": "2019-08-24T14:15:22Z",
- "metrics": [
- {
- "metric": "THINK",
- "score": 5
}, - {
- "metric": "THINK",
- "score": 5
}, - {
- "metric": "THINK",
- "score": 5
}
], - "stat": "VISIBLE",
- "rank_type": "TIME",
- "rank_value": "TIME",
- "objectivity": 1,
- "rank_var_1": 2147483647,
- "rank_sort_1": "ASC",
- "rank_var_2": 2147483647,
- "rank_sort_2": "ASC",
- "early_birds_global": true,
- "screenplay_public": true,
- "social_messaging": {
- "ig": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "tg": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "vk": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "push": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}
}, - "saved_at": {
- ".sv": "timestamp"
}, - "charge_type": "TEAM",
- "franchise_id": 2147483647,
- "payment_methods": [
- "sberbank"
], - "order": {
- "qq": 1500,
- "fiat": 1500,
- "cash": 1000000,
- "discount": 1500,
- "deposit": 1500,
- "players": 1000,
- "slots": 100,
- "created": "2019-08-24T14:15:22Z",
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "team": "string",
- "team_id": 2147483647,
- "user": "crux",
- "used": 1000000,
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise_id": 2147483647,
- "logic": "simple"
}, - "author_cash": 1000000,
- "paid_to_author": 1000000,
- "referral": 1000000,
- "own_referral": 1000000,
- "service": 1000000
}
}SEARCHABLE
Поиск игр
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "games": [
- {
- "id": 2147483647,
- "city": {
- "id": 2147483647,
- "name": "string",
- "region": "string",
- "name_local": "string"
}, - "name": "This Is The Game",
- "schema": "LINEAR",
- "start": "2019-08-24T14:15:22Z",
- "enroll_until": "2019-08-24T14:15:22Z",
- "description": "string",
- "social_text": "string",
- "timing": "2-4 hours",
- "timing_for": "Leaders",
- "mileage": 50,
- "max_players": 1,
- "cost": 1500,
- "cost_qq": 1000000,
- "cost_loyalty": 1000000,
- "cost_discounted": 1000000,
- "cost_discounted_end": "2019-08-24T14:15:22Z",
- "tags": [
- "PHOTO"
], - "transport": "NONE",
- "created": "2019-08-24T14:15:22Z",
- "owner": 2147483647,
- "authors": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "owner": false,
- "rating": {
- "total_games": {
- "real": 1000000,
- "virtual": 1000000
}, - "games_written": {
- "real": 1000000,
- "virtual": 1000000
}, - "feedback": {
- "real": 5,
- "virtual": 5
}, - "feedback_full": {
- "real": 5,
- "virtual": 5
}
}
}
], - "briefing_geo": "(56.129129,40.408397)",
- "briefing_time": "2019-08-24T14:15:22Z",
- "briefing_txt": "string",
- "published": false,
- "score": 5,
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "start_type": "manual",
- "hints": [
- {
- "id": 2147483647,
- "title": "string",
- "icon": "string",
- "description": "string"
}
], - "testing": false,
- "running": false,
- "start_in": 2147483647,
- "enroll_closes_in": 2147483647,
- "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "feedback": {
- "metrics": [
- {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}
], - "feedback": "string",
- "user": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "created": "2019-08-24T14:15:22Z"
}, - "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "teams": [
- {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}
], - "teams_count": 1000000,
- "teams_limit": 1024,
- "started_ago": 2147483647,
- "closed": true,
- "closed_at": "2019-08-24T14:15:22Z",
- "metrics": [
- {
- "metric": "THINK",
- "score": 5
}, - {
- "metric": "THINK",
- "score": 5
}, - {
- "metric": "THINK",
- "score": 5
}
], - "stat": "VISIBLE",
- "rank_type": "TIME",
- "rank_value": "TIME",
- "objectivity": 1,
- "rank_var_1": 2147483647,
- "rank_sort_1": "ASC",
- "rank_var_2": 2147483647,
- "rank_sort_2": "ASC",
- "early_birds_global": true,
- "screenplay_public": true,
- "social_messaging": {
- "ig": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "tg": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "vk": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "push": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}
}, - "saved_at": {
- ".sv": "timestamp"
}, - "charge_type": "TEAM",
- "franchise_id": 2147483647,
- "payment_methods": [
- "sberbank"
], - "order": {
- "qq": 1500,
- "fiat": 1500,
- "cash": 1000000,
- "discount": 1500,
- "deposit": 1500,
- "players": 1000,
- "slots": 100,
- "created": "2019-08-24T14:15:22Z",
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "team": "string",
- "team_id": 2147483647,
- "user": "crux",
- "used": 1000000,
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise_id": 2147483647,
- "logic": "simple"
}, - "author_cash": 1000000,
- "paid_to_author": 1000000,
- "referral": 1000000,
- "own_referral": 1000000,
- "service": 1000000
}
}
], - "records": 2147483647
}Информация об игре
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
{- "id": 2147483647,
- "city": {
- "id": 2147483647,
- "name": "string",
- "region": "string",
- "name_local": "string"
}, - "name": "This Is The Game",
- "schema": "LINEAR",
- "start": "2019-08-24T14:15:22Z",
- "enroll_until": "2019-08-24T14:15:22Z",
- "description": "string",
- "social_text": "string",
- "timing": "2-4 hours",
- "timing_for": "Leaders",
- "mileage": 50,
- "max_players": 1,
- "cost": 1500,
- "cost_qq": 1000000,
- "cost_loyalty": 1000000,
- "cost_discounted": 1000000,
- "cost_discounted_end": "2019-08-24T14:15:22Z",
- "tags": [
- "PHOTO"
], - "transport": "NONE",
- "created": "2019-08-24T14:15:22Z",
- "owner": 2147483647,
- "authors": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "owner": false,
- "rating": {
- "total_games": {
- "real": 1000000,
- "virtual": 1000000
}, - "games_written": {
- "real": 1000000,
- "virtual": 1000000
}, - "feedback": {
- "real": 5,
- "virtual": 5
}, - "feedback_full": {
- "real": 5,
- "virtual": 5
}
}
}
], - "briefing_geo": "(56.129129,40.408397)",
- "briefing_time": "2019-08-24T14:15:22Z",
- "briefing_txt": "string",
- "published": false,
- "score": 5,
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "start_type": "manual",
- "hints": [
- {
- "id": 2147483647,
- "title": "string",
- "icon": "string",
- "description": "string"
}
], - "testing": false,
- "running": false,
- "start_in": 2147483647,
- "enroll_closes_in": 2147483647,
- "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "feedback": {
- "metrics": [
- {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}
], - "feedback": "string",
- "user": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "created": "2019-08-24T14:15:22Z"
}, - "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "teams": [
- {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}
], - "teams_count": 1000000,
- "teams_limit": 1024,
- "started_ago": 2147483647,
- "closed": true,
- "closed_at": "2019-08-24T14:15:22Z",
- "metrics": [
- {
- "metric": "THINK",
- "score": 5
}, - {
- "metric": "THINK",
- "score": 5
}, - {
- "metric": "THINK",
- "score": 5
}
], - "stat": "VISIBLE",
- "rank_type": "TIME",
- "rank_value": "TIME",
- "objectivity": 1,
- "rank_var_1": 2147483647,
- "rank_sort_1": "ASC",
- "rank_var_2": 2147483647,
- "rank_sort_2": "ASC",
- "early_birds_global": true,
- "screenplay_public": true,
- "social_messaging": {
- "ig": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "tg": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "vk": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "push": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}
}, - "saved_at": {
- ".sv": "timestamp"
}, - "charge_type": "TEAM",
- "franchise_id": 2147483647,
- "payment_methods": [
- "sberbank"
], - "order": {
- "qq": 1500,
- "fiat": 1500,
- "cash": 1000000,
- "discount": 1500,
- "deposit": 1500,
- "players": 1000,
- "slots": 100,
- "created": "2019-08-24T14:15:22Z",
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "team": "string",
- "team_id": 2147483647,
- "user": "crux",
- "used": 1000000,
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise_id": 2147483647,
- "logic": "simple"
}, - "author_cash": 1000000,
- "paid_to_author": 1000000,
- "referral": 1000000,
- "own_referral": 1000000,
- "service": 1000000
}
}Информация о стоимости
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
{- "cost": 1500,
- "cost_qq": 1000000,
- "cost_loyalty": 1000000,
- "cost_discounted": 1000000,
- "cost_discounted_end": "2019-08-24T14:15:22Z"
}Информация о стоимости
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| promocode | string or null (Promocode) [ 1 .. 64 ] characters [A-Za-zА-Яа-яЁё0-9-.]+ Промокод |
| team_id | integer or null <int32> (Id-wo) [ 0 .. 2147483647 ] Id |
| players | integer <int32> [ 1 .. 100 ] Количество оплачиваемых мест для игроков в составе при оплате за игрока. |
{- "promocode": "NEWBIE",
- "team_id": 2147483647,
- "players": 1
}{- "full": 1500,
- "qq": 1000000,
- "discounted": 1000000,
- "early_birds_data": {
- "cost": 1000000,
- "cost_discounted": 1000000,
- "cost_discounted_end": "2019-08-24T14:15:22Z"
}, - "usable": true,
- "promocode_id": 2147483647,
- "promocode_expired": false,
- "players": 1
}SEARCHABLE
Отзывы и оценки игры.
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
{- "feedbacks": [
- {
- "metrics": [
- {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}
], - "feedback": "string",
- "user": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "created": "2019-08-24T14:15:22Z"
}
], - "records": 2147483647
}SEARCHABLE
Список предстоящих игр на которые игрок зарегистрирован как капитан команды
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "games": [
- {
- "game": {
- "id": 2147483647,
- "city": {
- "id": 2147483647,
- "name": "string",
- "region": "string",
- "name_local": "string"
}, - "name": "This Is The Game",
- "schema": "LINEAR",
- "start": "2019-08-24T14:15:22Z",
- "enroll_until": "2019-08-24T14:15:22Z",
- "description": "string",
- "social_text": "string",
- "timing": "2-4 hours",
- "timing_for": "Leaders",
- "mileage": 50,
- "max_players": 1,
- "cost": 1500,
- "cost_qq": 1000000,
- "cost_loyalty": 1000000,
- "cost_discounted": 1000000,
- "cost_discounted_end": "2019-08-24T14:15:22Z",
- "tags": [
- "PHOTO"
], - "transport": "NONE",
- "created": "2019-08-24T14:15:22Z",
- "owner": 2147483647,
- "authors": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "owner": false,
- "rating": {
- "total_games": {
- "real": 1000000,
- "virtual": 1000000
}, - "games_written": {
- "real": 1000000,
- "virtual": 1000000
}, - "feedback": {
- "real": 5,
- "virtual": 5
}, - "feedback_full": {
- "real": 5,
- "virtual": 5
}
}
}
], - "briefing_geo": "(56.129129,40.408397)",
- "briefing_time": "2019-08-24T14:15:22Z",
- "briefing_txt": "string",
- "published": false,
- "score": 5,
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "start_type": "manual",
- "hints": [
- {
- "id": 2147483647,
- "title": "string",
- "icon": "string",
- "description": "string"
}
], - "testing": false,
- "running": false,
- "start_in": 2147483647,
- "enroll_closes_in": 2147483647,
- "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "feedback": {
- "metrics": [
- {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}
], - "feedback": "string",
- "user": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": null
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "created": "2019-08-24T14:15:22Z"
}, - "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "teams": [
- {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": null
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}
], - "teams_count": 1000000,
- "teams_limit": 1024,
- "started_ago": 2147483647,
- "closed": true,
- "closed_at": "2019-08-24T14:15:22Z",
- "metrics": [
- {
- "metric": "THINK",
- "score": 5
}, - {
- "metric": "THINK",
- "score": 5
}, - {
- "metric": "THINK",
- "score": 5
}
], - "stat": "VISIBLE",
- "rank_type": "TIME",
- "rank_value": "TIME",
- "objectivity": 1,
- "rank_var_1": 2147483647,
- "rank_sort_1": "ASC",
- "rank_var_2": 2147483647,
- "rank_sort_2": "ASC",
- "early_birds_global": true,
- "screenplay_public": true,
- "social_messaging": {
- "ig": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "tg": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "vk": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "push": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}
}, - "saved_at": {
- ".sv": "timestamp"
}, - "charge_type": "TEAM",
- "franchise_id": 2147483647,
- "payment_methods": [
- "sberbank"
], - "order": {
- "qq": 1500,
- "fiat": 1500,
- "cash": 1000000,
- "discount": 1500,
- "deposit": 1500,
- "players": 1000,
- "slots": 100,
- "created": "2019-08-24T14:15:22Z",
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "team": "string",
- "team_id": 2147483647,
- "user": "crux",
- "used": 1000000,
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise_id": 2147483647,
- "logic": "simple"
}, - "author_cash": 1000000,
- "paid_to_author": 1000000,
- "referral": 1000000,
- "own_referral": 1000000,
- "service": 1000000
}
}, - "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "teams": [
- {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}
], - "teams_count": 1000000,
- "order": {
- "qq": 1500,
- "fiat": 1500,
- "cash": 1000000,
- "discount": 1500,
- "deposit": 1500,
- "players": 1000,
- "slots": 100,
- "created": "2019-08-24T14:15:22Z",
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "team": "string",
- "team_id": 2147483647,
- "user": "crux",
- "used": 1000000,
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise_id": 2147483647,
- "logic": "simple"
}, - "author_cash": 1000000,
- "paid_to_author": 1000000,
- "referral": 1000000,
- "own_referral": 1000000,
- "service": 1000000
}
}
], - "records": 2147483647
}SEARCHABLE
Составы команд на игре
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "lineups": [
- {
- "team_id": 2147483647,
- "lineup": [
- 2147483647
], - "pay_by": "sberbank",
- "deferred_pay": false,
- "players": 1
}
], - "records": 2147483647
}Регистрация на игру, редактирование состава команды
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| is_mobile | boolean Default: false Использовать мобильные страницы для возврата из банка. |
| theme | string Default: "dark" Enum: "dark" "light" Тема для страницы возврата |
| team_id required | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| lineup required | Array of integers or null <int32> (Id-rw) [ 0 .. 100 ] items unique [ items <int32 > [ 0 .. 2147483647 ] ] Список ID игроков |
| promocode | string (Promocode-WO) [ 1 .. 64 ] characters [A-Za-zА-Яа-яЁё0-9-.]+ Промокод |
| pay_by | string (PaymentType) Enum: "sberbank" "tochka" "yoomoney" "cash" |
| deferred_pay | boolean Default: false |
| players | integer <int32> [ 1 .. 100 ] Default: 1 Количество игроков при оплате за человека. |
{- "team_id": 2147483647,
- "lineup": [
- 2147483647
], - "promocode": "NEWBIE",
- "pay_by": "sberbank",
- "deferred_pay": false,
- "players": 1
}{- "team_id": 2147483647,
- "lineup": [
- 2147483647
], - "pay_by": "sberbank",
- "deferred_pay": false,
- "players": 1
}Проверка промокода при регистрации команды на игру
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| promocode | string or null (Promocode) [ 1 .. 64 ] characters [A-Za-zА-Яа-яЁё0-9-.]+ Промокод |
| team_id | integer or null <int32> (Id-wo) [ 0 .. 2147483647 ] Id |
| players | integer <int32> [ 1 .. 100 ] Количество оплачиваемых мест для игроков в составе при оплате за игрока. |
{- "promocode": "NEWBIE",
- "team_id": 2147483647,
- "players": 1
}{- "id": 2147483647,
- "cost": 1500,
- "loyalty": 1500,
- "qq": 1500,
- "discounted": 1000,
- "usable": true
}Если пользователь - капитан, то снимается вся команда. Если игрок - он выходит из состава.
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}Схема игры
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
{- "levels": [
- {
- "id": 2147483647,
- "name": "string",
- "codes": [
- {
- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "team": {
- "id": 2147483647,
- "name": "string"
}, - "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}
], - "duration": "string",
- "infoblocks": [
- {
- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}
], - "sort": -2147483648,
- "autoclose_penalty_time": "string",
- "is_cut_off": false,
- "flow": "LEGEND",
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "blocks_sort_by": "SORT",
- "chart": {
- "x": 0.1,
- "y": 0.1
}, - "code_name": "string"
}
], - "environment": {
- "chart": {
- "start": {
- "x": 0.1,
- "y": 0.1
}, - "finish": {
- "x": 0.1,
- "y": 0.1
}, - "enrollment": {
- "x": 0.1,
- "y": 0.1
}, - "unenrollment": {
- "x": 0.1,
- "y": 0.1
}
}, - "vars": [
- {
- "id": 2147483647,
- "name": "string",
- "scope": "TEAM",
- "type": "string",
- "initial": 0,
- "color_id": 2147483647,
- "title": "string",
- "details": "string"
}
], - "timers": [
- {
- "id": 2147483647,
- "name": "string",
- "scope": "TEAM"
}
]
}, - "transitions": [
- {
- "id": 2147483647,
- "event": "Start",
- "condition": {
- "type": "And",
- "args": [
- null
]
}, - "action": { },
- "action_else": { },
- "chart": {
- "x": 0.1,
- "y": 0.1
}
}
], - "messages": [
- {
- "id": 2147483647,
- "levels": [
- 2147483647
], - "teams": [
- 2147483647
], - "message": "string"
}
], - "times": [
- {
- "id": 2147483647,
- "levels": [
- 2147483647
], - "teams": [
- 2147483647
], - "message": "string",
- "change_time": -2147483648,
- "is_manual": false
}
], - "access": { }
}Выполнение действий в тестируемом квесте.
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| action required | string Value: "LevelClose" |
| teams required | Array of integers or null <int32> (Id-rw) [ 1 .. 1000 ] items [ items <int32 > [ 0 .. 2147483647 ] ] ID команд. |
object |
{- "action": "InfoblockOpen",
- "teams": [
- 2147483647
], - "args": {
- "ids": [
- 2147483647
], - "level_id": 2147483647
}
}{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}Ручной старт игры капитаном при командном старте
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| team_id required | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
{- "team_id": 2147483647
}{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}Схема игры
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
{- "levels": [
- {
- "id": 2147483647,
- "name": "string",
- "infoblocks": [
- {
- "id": 2147483647,
- "name": "string",
- "text": "string",
- "button": "string",
- "type": "Bonuses",
- "sort": -2147483648,
- "is_open": false,
- "opens_in": 2147483647,
- "button_early": false,
- "button_penalty_time": -2147483648,
- "code_change_time": -2147483648,
- "code_passed": true,
- "change_time": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "has_code_opening": true,
- "alias": "string",
- "layout": "CLASSIC",
- "logic": "text"
}
], - "codes": [
- {
- "id": 2147483647,
- "name": "string",
- "code": "string",
- "player": "crux",
- "closed": "2019-08-24T14:15:22Z",
- "change_time": -2147483648
}
], - "sort": -2147483648,
- "is_open": false,
- "is_closed": false,
- "closes_in": 2147483647,
- "autoclose_penalty_time": -2147483648,
- "change_time": -2147483648,
- "is_cut_off": false,
- "has_codes": true,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "alias": "string"
}
], - "environment": {
- "vars": [
- {
- "id": 2147483647,
- "name": "string",
- "value": 0,
- "title": "string",
- "type": "string",
- "details": "string",
- "color": {
- "id": 2147483647,
- "name": "string",
- "dark": "stringst",
- "light": "stringst"
}
}
], - "timers": [
- {
- "id": 2147483647,
- "name": "string",
- "started_ago": 2147483647,
- "duration": 2147483647,
- "state": "PAUSED"
}
]
}, - "last_player_code": {
- "code": "string",
- "is_success": true,
- "code_found": true,
- "is_ib_open_code": true,
- "is_ib_close_code": true,
- "is_level_code": true,
- "change_time": -2147483648
}, - "is_finished": true,
- "is_feedback_provided": false,
- "team_id": 2147483647,
- "messages": [
- {
- "id": 2147483647,
- "levels": [
- 2147483647
], - "teams": [
- 2147483647
], - "message": "string"
}
], - "cached_at": 2147483647,
- "cache_age": 2147483647,
- "stat": "VISIBLE",
- "flashes": [
- {
- "message": "string",
- "level": "SUCCESS"
}
], - "log_id": 2147483647,
- "access": { },
- "saved_at": {
- ".sv": "timestamp"
}
}Статистика игры
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
{- "team_id": 2147483647,
- "stat": [
- {
- "id": 2147483647,
- "name": "string",
- "team": "string",
- "team_id": 2147483647,
- "opened_at": "2019-08-24T14:15:22Z",
- "closed_at": "2019-08-24T14:15:22Z",
- "timing": -2147483648,
- "closed_by": "crux",
- "closed_by_id": 2147483647,
- "change_time": -2147483648,
- "level_open_place": 1,
- "level_timing_place": 1,
- "sort": -2147483648,
- "level_place": 1,
- "is_cut_off": false,
- "main_run": true
}
], - "top": [
- {
- "team_id": 2147483647,
- "team": "string",
- "started_at": "2019-08-24T14:15:22Z",
- "finished_at": "2019-08-24T14:15:22Z",
- "levels_closed": 2147483647,
- "timing": -2147483648,
- "change_time": -2147483648,
- "cut_off_time": -2147483648,
- "final_timing": -2147483648,
- "timing_place": 1,
- "final_place": 1,
- "main_run": true,
- "rank_vars": {
- "rank_var_1": {
- "id": 2147483647,
- "name": "string",
- "value": 0,
- "title": "string",
- "type": "string",
- "details": "string",
- "color": {
- "id": 2147483647,
- "name": "string",
- "dark": "stringst",
- "light": "stringst"
}
}, - "rank_var_2": {
- "id": 2147483647,
- "name": "string",
- "value": 0,
- "title": "string",
- "type": "string",
- "details": "string",
- "color": {
- "id": 2147483647,
- "name": "string",
- "dark": "stringst",
- "light": "stringst"
}
}
}
}
], - "access": { },
- "saved_at": {
- ".sv": "timestamp"
}
}Отправить код
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
Код
| code required | string [ 1 .. 512 ] characters [\p{Print}]+ Код уровня или инфоблока |
| scanned | boolean or null Default: false Код получен через сканер. |
{- "code": "string",
- "scanned": false
}{- "levels": [
- {
- "id": 2147483647,
- "name": "string",
- "infoblocks": [
- {
- "id": 2147483647,
- "name": "string",
- "text": "string",
- "button": "string",
- "type": "Bonuses",
- "sort": -2147483648,
- "is_open": false,
- "opens_in": 2147483647,
- "button_early": false,
- "button_penalty_time": -2147483648,
- "code_change_time": -2147483648,
- "code_passed": true,
- "change_time": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "has_code_opening": true,
- "alias": "string",
- "layout": "CLASSIC",
- "logic": "text"
}
], - "codes": [
- {
- "id": 2147483647,
- "name": "string",
- "code": "string",
- "player": "crux",
- "closed": "2019-08-24T14:15:22Z",
- "change_time": -2147483648
}
], - "sort": -2147483648,
- "is_open": false,
- "is_closed": false,
- "closes_in": 2147483647,
- "autoclose_penalty_time": -2147483648,
- "change_time": -2147483648,
- "is_cut_off": false,
- "has_codes": true,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "alias": "string"
}
], - "environment": {
- "vars": [
- {
- "id": 2147483647,
- "name": "string",
- "value": 0,
- "title": "string",
- "type": "string",
- "details": "string",
- "color": {
- "id": 2147483647,
- "name": "string",
- "dark": "stringst",
- "light": "stringst"
}
}
], - "timers": [
- {
- "id": 2147483647,
- "name": "string",
- "started_ago": 2147483647,
- "duration": 2147483647,
- "state": "PAUSED"
}
]
}, - "last_player_code": {
- "code": "string",
- "is_success": true,
- "code_found": true,
- "is_ib_open_code": true,
- "is_ib_close_code": true,
- "is_level_code": true,
- "change_time": -2147483648
}, - "is_finished": true,
- "is_feedback_provided": false,
- "team_id": 2147483647,
- "messages": [
- {
- "id": 2147483647,
- "levels": [
- 2147483647
], - "teams": [
- 2147483647
], - "message": "string"
}
], - "cached_at": 2147483647,
- "cache_age": 2147483647,
- "stat": "VISIBLE",
- "flashes": [
- {
- "message": "string",
- "level": "SUCCESS"
}
], - "log_id": 2147483647,
- "access": { },
- "saved_at": {
- ".sv": "timestamp"
}
}Залогировать скриншот
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}Отправить оценки игры и отзыв на игру
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
Код
required | Array of objects (GameMetric) = 3 items Оценки квеста. Набор оценок зависит от транспорта. |
| feedback | string or null [ 0 .. 4096 ] characters [\p{Print}]* Отзыв в свободной форме. |
object or null (Id_Nickname) | |
object (Team) Команда |
{- "metrics": [
- {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}
], - "feedback": "string",
- "user": {
- "nickname": "crux",
- "captain": true,
- "last_online_change": -2147483648
}, - "team": {
- "name": "string",
- "active": true,
- "checked": false,
- "lineup": [
- {
- "nickname": "crux",
- "captain": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "had_game_access": 100
}
}{- "levels": [
- {
- "id": 2147483647,
- "name": "string",
- "infoblocks": [
- {
- "id": 2147483647,
- "name": "string",
- "text": "string",
- "button": "string",
- "type": "Bonuses",
- "sort": -2147483648,
- "is_open": false,
- "opens_in": 2147483647,
- "button_early": false,
- "button_penalty_time": -2147483648,
- "code_change_time": -2147483648,
- "code_passed": true,
- "change_time": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "has_code_opening": true,
- "alias": "string",
- "layout": "CLASSIC",
- "logic": "text"
}
], - "codes": [
- {
- "id": 2147483647,
- "name": "string",
- "code": "string",
- "player": "crux",
- "closed": "2019-08-24T14:15:22Z",
- "change_time": -2147483648
}
], - "sort": -2147483648,
- "is_open": false,
- "is_closed": false,
- "closes_in": 2147483647,
- "autoclose_penalty_time": -2147483648,
- "change_time": -2147483648,
- "is_cut_off": false,
- "has_codes": true,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "alias": "string"
}
], - "environment": {
- "vars": [
- {
- "id": 2147483647,
- "name": "string",
- "value": 0,
- "title": "string",
- "type": "string",
- "details": "string",
- "color": {
- "id": 2147483647,
- "name": "string",
- "dark": "stringst",
- "light": "stringst"
}
}
], - "timers": [
- {
- "id": 2147483647,
- "name": "string",
- "started_ago": 2147483647,
- "duration": 2147483647,
- "state": "PAUSED"
}
]
}, - "last_player_code": {
- "code": "string",
- "is_success": true,
- "code_found": true,
- "is_ib_open_code": true,
- "is_ib_close_code": true,
- "is_level_code": true,
- "change_time": -2147483648
}, - "is_finished": true,
- "is_feedback_provided": false,
- "team_id": 2147483647,
- "messages": [
- {
- "id": 2147483647,
- "levels": [
- 2147483647
], - "teams": [
- 2147483647
], - "message": "string"
}
], - "cached_at": 2147483647,
- "cache_age": 2147483647,
- "stat": "VISIBLE",
- "flashes": [
- {
- "message": "string",
- "level": "SUCCESS"
}
], - "log_id": 2147483647,
- "access": { },
- "saved_at": {
- ".sv": "timestamp"
}
}Залогировать копирование
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
| block_id required | integer <int32> [ 1 .. 2147483647 ] ID инфоблока |
{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}Загрузка фото в инфоблок
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
| block_id required | integer <int32> [ 1 .. 2147483647 ] ID инфоблока |
Фото
{- "files": [
- {
- "filename": "string",
- "url": "string",
- "size": 2147483647,
- "created": "2019-08-24T14:15:22Z",
- "content_type": "string",
- "status": "STORED"
}
]
}Загрузка свободного ответа в инфоблок
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
| block_id required | integer <int32> [ 1 .. 2147483647 ] ID инфоблока |
| answer required | string [ 0 .. 65535 ] characters [\p{Print}]* Свободный ответ. |
{- "answer": "string"
}{- "files": [
- {
- "filename": "string",
- "url": "string",
- "size": 2147483647,
- "created": "2019-08-24T14:15:22Z",
- "content_type": "string",
- "status": "STORED"
}
]
}Открыть инфоблок по кнопке
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
| block_id required | integer <int32> [ 1 .. 2147483647 ] ID инфоблока |
{- "levels": [
- {
- "id": 2147483647,
- "name": "string",
- "infoblocks": [
- {
- "id": 2147483647,
- "name": "string",
- "text": "string",
- "button": "string",
- "type": "Bonuses",
- "sort": -2147483648,
- "is_open": false,
- "opens_in": 2147483647,
- "button_early": false,
- "button_penalty_time": -2147483648,
- "code_change_time": -2147483648,
- "code_passed": true,
- "change_time": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "has_code_opening": true,
- "alias": "string",
- "layout": "CLASSIC",
- "logic": "text"
}
], - "codes": [
- {
- "id": 2147483647,
- "name": "string",
- "code": "string",
- "player": "crux",
- "closed": "2019-08-24T14:15:22Z",
- "change_time": -2147483648
}
], - "sort": -2147483648,
- "is_open": false,
- "is_closed": false,
- "closes_in": 2147483647,
- "autoclose_penalty_time": -2147483648,
- "change_time": -2147483648,
- "is_cut_off": false,
- "has_codes": true,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "alias": "string"
}
], - "environment": {
- "vars": [
- {
- "id": 2147483647,
- "name": "string",
- "value": 0,
- "title": "string",
- "type": "string",
- "details": "string",
- "color": {
- "id": 2147483647,
- "name": "string",
- "dark": "stringst",
- "light": "stringst"
}
}
], - "timers": [
- {
- "id": 2147483647,
- "name": "string",
- "started_ago": 2147483647,
- "duration": 2147483647,
- "state": "PAUSED"
}
]
}, - "last_player_code": {
- "code": "string",
- "is_success": true,
- "code_found": true,
- "is_ib_open_code": true,
- "is_ib_close_code": true,
- "is_level_code": true,
- "change_time": -2147483648
}, - "is_finished": true,
- "is_feedback_provided": false,
- "team_id": 2147483647,
- "messages": [
- {
- "id": 2147483647,
- "levels": [
- 2147483647
], - "teams": [
- 2147483647
], - "message": "string"
}
], - "cached_at": 2147483647,
- "cache_age": 2147483647,
- "stat": "VISIBLE",
- "flashes": [
- {
- "message": "string",
- "level": "SUCCESS"
}
], - "log_id": 2147483647,
- "access": { },
- "saved_at": {
- ".sv": "timestamp"
}
}SEARCHABLE
Лог ввода кодов для команды игрока
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
| is_own | boolean Только свои |
| is_success | boolean Только успешные |
| log_id | integer <int32> [ 1 .. 2147483647 ] Выбирать события, связанные с log_id |
{- "log": [
- {
- "id": 2147483647,
- "parent": 2147483647,
- "team": "string",
- "user_id": 2147483647,
- "player": "crux",
- "code": "string",
- "is_success": true,
- "created": "2019-08-24T14:15:22Z",
- "event": "code",
- "action": {
- "type": "start",
- "args": null
}, - "change_time": -2147483648,
- "attrs": {
- "last_player_code": {
- "code": "string",
- "is_success": true,
- "code_found": true,
- "is_ib_open_code": true,
- "is_ib_close_code": true,
- "is_level_code": true,
- "change_time": -2147483648
}
}, - "level": "string",
- "block": "string"
}
], - "records": 2147483647
}| id required | integer <int32> (Id) [ 0 .. 2147483647 ] Id |
| city_id | integer or null <int32> (Id-wo) [ 0 .. 2147483647 ] Id |
object or null (City) Город | |
| name required | string [ 3 .. 180 ] characters [\p{Print}]* Название игры |
| schema | string Default: "LINEAR" Enum: "LINEAR" "RANDOM" "ALL" "CUSTOM" Схема выдачи заданий. |
| start required | string or null <date-time> (DateTimeTZ) <= 32 characters Дата и время, с таймзоной |
| enroll_until | string or null <date-time> (DateTimeTZ) <= 32 characters Дата и время, с таймзоной |
| description | string or null [ 0 .. 32768 ] characters [\p{Print}]* Описание игры |
| social_text | string or null [ 0 .. 16384 ] characters [\p{Print}]* Текст для соцсетей |
| timing | string or null [ 0 .. 64 ] characters [\p{Print}]* Ожидаемое время прохождения. |
| timing_for | string or null [ 0 .. 64 ] characters [\p{Print}]* На кого рассчитано ожидаемое время прохождения |
| mileage | integer or null <int32> [ 0 .. 40075 ] Минимальный пробег на игре в километрах. |
| max_players required | integer <int32> [ 1 .. 100 ] Максимальное количество игроков в команде. |
| cost required | number <float> [ 0 .. 1000000 ] Стоимость участия в рублях. |
| cost_qq | number or null <float> [ 0 .. 1000000 ] Сумма, которая будет оплачена кукухами. |
| cost_loyalty | number or null <float> [ 0 .. 1000000 ] Deprecated Стоимость с учетом оплаты кукухами. |
| cost_discounted | number or null <float> [ 0 .. 1000000 ] Стоимость со скидкой за раннюю регистрацию |
| cost_discounted_end | string or null <date-time> (DateTimeTZ-RO) <= 34 characters Дата и время, с таймзоной, только чтение |
| tags required | Array of strings (GameTag) [ 1 .. 7 ] items unique Items Enum: "PHOTO" "BRAIN" "COMBAT" "SNOOP" "TOUR" "MAZE" "STREET" "URBAN" Типы игры |
| transport required | string (GameTransport) Enum: "NONE" "ANY" "CAR" "FOOT" "BIKE" Средство передвижения |
| created required | string or null <date-time> (DateTimeTZ-RO) <= 34 characters Дата и время, с таймзоной, только чтение |
| owner | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
Array of objects (GameAuthor) [ 0 .. 32 ] items unique | |
| briefing_geo | string or null (GeoPoint) [ 5 .. 26 ] characters ^\((-?\d+\.\d+),(-?\d+\.\d+)\)$ Точка на карте |
| briefing_time | string or null <date-time> (DateTimeTZ) <= 32 characters Дата и время, с таймзоной |
| briefing_txt | string or null [ 0 .. 1024 ] characters [\p{Print}]* Место предыгрового брифинга |
| published | boolean Default: false Игра доступна для поиска и регистрации. |
| score | number or null <float> [ 0 .. 5 ] Средняя оценка. |
| uuid | string <uuid> = 36 characters ^[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{... Уникальный идентификатор игры |
| splash | string or null <uri> [ 0 .. 2000 ] characters ^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[%\w... Ссылка на картинку анонса |
| start_type | string Default: "auto" Enum: "manual" "auto" "team" Ручной или автоматический старт игры |
Array of objects or null (GameHint) [ 0 .. 32 ] items Раздел подготовки к квесту. | |
| testing required | boolean Default: false Запущено тестирование автором. |
| running required | boolean Default: false Игра запущена |
| start_in required | integer <int32> [ 0 .. 2147483647 ] Время в секундах, через которое стартует игра |
| enroll_closes_in | integer or null <int32> [ 0 .. 2147483647 ] Время в секундах, через которое закрывается регистрация, если она ограничена. |
object or null (Team) Команда | |
object or null (GameFeedback) | |
Array of objects or null (Id_Nickname) [ 0 .. 1000 ] items unique Состав команды | |
Array of objects or null (Team) [ 0 .. 1000 ] items Команды, участвующие в игре. Список всегда пуст для игр с запуском по требованию. | |
| teams_count | integer <int32> [ 0 .. 1000000 ] Количество команд, принявших участие. |
| teams_limit | integer or null <int32> [ 0 .. 1024 ] Максимальное количество команд. |
| started_ago required | integer <int32> [ 0 .. 2147483647 ] Количество секунд, прошедших со старта квеста. |
| closed | boolean Игра закрыта |
| closed_at | string or null <date-time> (DateTimeTZ-RO) <= 34 characters Дата и время, с таймзоной, только чтение |
Array of objects or null (GameMetricAvg) = 3 items Итоговые оценки за квест по критериям. | |
| stat | string (GameStatVisibility) Enum: "VISIBLE" "OWN" "PASSED" "HIDDEN" Видимость статистики |
| rank_type | string (GameRankType) Enum: "TIME" "LEVELS" "GAME" "CUSTOM" "SCORE" Метод расстановки мест. |
| rank_value | string (GameRankValue) Enum: "TIME" "SCORE" Игра на время или на баллы. |
| objectivity | number or null <float> [ 0 .. 1 ] Доля поставивших оценку. |
| rank_var_1 | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| rank_sort_1 | string or null (GameRankSort) Enum: "ASC" "DESC" |
| rank_var_2 | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| rank_sort_2 | string or null (GameRankSort) Enum: "ASC" "DESC" |
| early_birds_global | boolean or null Default: true Применяются глобальные настройки скидок за раннюю регистрацию. |
| screenplay_public | boolean or null Default: true Просмотр сценария доступен игрокам после закрытия игры. |
object or null (GameSocialMessagingData) Данные для каналов оповещения. Доступно для автора. | |
object (RDBTimestamp) | |
| charge_type | string (GameChargeType) Enum: "TEAM" "PLAYER" Оплата за участника или за команду. |
| franchise_id | integer or null <int32> (Id-nullable) [ 0 .. 2147483647 ] Id-nullable |
| payment_methods | Array of strings or null (PaymentType) [ 0 .. 100 ] items Enum: "sberbank" "tochka" "yoomoney" "cash" |
object or null (BalanceLogItemOrder) Данные заказа регистрации. |
{- "id": 2147483647,
- "city": {
- "id": 2147483647,
- "name": "string",
- "region": "string",
- "name_local": "string"
}, - "name": "This Is The Game",
- "schema": "LINEAR",
- "start": "2019-08-24T14:15:22Z",
- "enroll_until": "2019-08-24T14:15:22Z",
- "description": "string",
- "social_text": "string",
- "timing": "2-4 hours",
- "timing_for": "Leaders",
- "mileage": 50,
- "max_players": 1,
- "cost": 1500,
- "cost_qq": 1000000,
- "cost_loyalty": 1000000,
- "cost_discounted": 1000000,
- "cost_discounted_end": "2019-08-24T14:15:22Z",
- "tags": [
- "PHOTO"
], - "transport": "NONE",
- "created": "2019-08-24T14:15:22Z",
- "owner": 2147483647,
- "authors": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "owner": false,
- "rating": {
- "total_games": {
- "real": 1000000,
- "virtual": 1000000
}, - "games_written": {
- "real": 1000000,
- "virtual": 1000000
}, - "feedback": {
- "real": 5,
- "virtual": 5
}, - "feedback_full": {
- "real": 5,
- "virtual": 5
}
}
}
], - "briefing_geo": "(56.129129,40.408397)",
- "briefing_time": "2019-08-24T14:15:22Z",
- "briefing_txt": "string",
- "published": false,
- "score": 5,
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "start_type": "manual",
- "hints": [
- {
- "id": 2147483647,
- "title": "string",
- "icon": "string",
- "description": "string"
}
], - "testing": false,
- "running": false,
- "start_in": 2147483647,
- "enroll_closes_in": 2147483647,
- "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "feedback": {
- "metrics": [
- {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}
], - "feedback": "string",
- "user": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "created": "2019-08-24T14:15:22Z"
}, - "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "teams": [
- {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}
], - "teams_count": 1000000,
- "teams_limit": 1024,
- "started_ago": 2147483647,
- "closed": true,
- "closed_at": "2019-08-24T14:15:22Z",
- "metrics": [
- {
- "metric": "THINK",
- "score": 5
}, - {
- "metric": "THINK",
- "score": 5
}, - {
- "metric": "THINK",
- "score": 5
}
], - "stat": "VISIBLE",
- "rank_type": "TIME",
- "rank_value": "TIME",
- "objectivity": 1,
- "rank_var_1": 2147483647,
- "rank_sort_1": "ASC",
- "rank_var_2": 2147483647,
- "rank_sort_2": "ASC",
- "early_birds_global": true,
- "screenplay_public": true,
- "social_messaging": {
- "ig": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "tg": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "vk": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "push": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}
}, - "saved_at": {
- ".sv": "timestamp"
}, - "charge_type": "TEAM",
- "franchise_id": 2147483647,
- "payment_methods": [
- "sberbank"
], - "order": {
- "qq": 1500,
- "fiat": 1500,
- "cash": 1000000,
- "discount": 1500,
- "deposit": 1500,
- "players": 1000,
- "slots": 100,
- "created": "2019-08-24T14:15:22Z",
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "team": "string",
- "team_id": 2147483647,
- "user": "crux",
- "used": 1000000,
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise_id": 2147483647,
- "logic": "simple"
}, - "author_cash": 1000000,
- "paid_to_author": 1000000,
- "referral": 1000000,
- "own_referral": 1000000,
- "service": 1000000
}
}Создание игры
| city_id | integer or null <int32> (Id-wo) [ 0 .. 2147483647 ] Id |
| name required | string [ 3 .. 180 ] characters [\p{Print}]* Название игры |
| schema | string Default: "LINEAR" Enum: "LINEAR" "RANDOM" "ALL" "CUSTOM" Схема выдачи заданий. |
| start required | string or null <date-time> (DateTimeTZ) <= 32 characters Дата и время, с таймзоной |
| enroll_until | string or null <date-time> (DateTimeTZ) <= 32 characters Дата и время, с таймзоной |
| description | string or null [ 0 .. 32768 ] characters [\p{Print}]* Описание игры |
| social_text | string or null [ 0 .. 16384 ] characters [\p{Print}]* Текст для соцсетей |
| timing | string or null [ 0 .. 64 ] characters [\p{Print}]* Ожидаемое время прохождения. |
| timing_for | string or null [ 0 .. 64 ] characters [\p{Print}]* На кого рассчитано ожидаемое время прохождения |
| mileage | integer or null <int32> [ 0 .. 40075 ] Минимальный пробег на игре в километрах. |
| max_players required | integer <int32> [ 1 .. 100 ] Максимальное количество игроков в команде. |
| cost required | number <float> [ 0 .. 1000000 ] Стоимость участия в рублях. |
| tags required | Array of strings (GameTag) [ 1 .. 7 ] items unique Items Enum: "PHOTO" "BRAIN" "COMBAT" "SNOOP" "TOUR" "MAZE" "STREET" "URBAN" Типы игры |
| transport required | string (GameTransport) Enum: "NONE" "ANY" "CAR" "FOOT" "BIKE" Средство передвижения |
| owner | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| briefing_geo | string or null (GeoPoint) [ 5 .. 26 ] characters ^\((-?\d+\.\d+),(-?\d+\.\d+)\)$ Точка на карте |
| briefing_time | string or null <date-time> (DateTimeTZ) <= 32 characters Дата и время, с таймзоной |
| briefing_txt | string or null [ 0 .. 1024 ] characters [\p{Print}]* Место предыгрового брифинга |
| published | boolean Default: false Игра доступна для поиска и регистрации. |
| start_type | string Default: "auto" Enum: "manual" "auto" "team" Ручной или автоматический старт игры |
Array of objects or null (GameHint) [ 0 .. 32 ] items Раздел подготовки к квесту. | |
| teams_limit | integer or null <int32> [ 0 .. 1024 ] Максимальное количество команд. |
| stat | string (GameStatVisibility) Enum: "VISIBLE" "OWN" "PASSED" "HIDDEN" Видимость статистики |
| rank_type | string (GameRankType) Enum: "TIME" "LEVELS" "GAME" "CUSTOM" "SCORE" Метод расстановки мест. |
| rank_value | string (GameRankValue) Enum: "TIME" "SCORE" Игра на время или на баллы. |
| rank_var_1 | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| rank_sort_1 | string or null (GameRankSort) Enum: "ASC" "DESC" |
| rank_var_2 | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| rank_sort_2 | string or null (GameRankSort) Enum: "ASC" "DESC" |
| early_birds_global | boolean or null Default: true Применяются глобальные настройки скидок за раннюю регистрацию. |
| screenplay_public | boolean or null Default: true Просмотр сценария доступен игрокам после закрытия игры. |
object (RDBTimestamp) | |
| charge_type | string (GameChargeType) Enum: "TEAM" "PLAYER" Оплата за участника или за команду. |
| franchise_id | integer or null <int32> (Id-nullable) [ 0 .. 2147483647 ] Id-nullable |
| payment_methods | Array of strings or null (PaymentType) [ 0 .. 100 ] items Enum: "sberbank" "tochka" "yoomoney" "cash" |
object or null (BalanceLogItemOrder) Данные заказа регистрации. |
{- "city_id": 2147483647,
- "name": "This Is The Game",
- "schema": "LINEAR",
- "start": "2019-08-24T14:15:22Z",
- "enroll_until": "2019-08-24T14:15:22Z",
- "description": "string",
- "social_text": "string",
- "timing": "2-4 hours",
- "timing_for": "Leaders",
- "mileage": 50,
- "max_players": 1,
- "cost": 1500,
- "tags": [
- "PHOTO"
], - "transport": "NONE",
- "owner": 2147483647,
- "briefing_geo": "(56.129129,40.408397)",
- "briefing_time": "2019-08-24T14:15:22Z",
- "briefing_txt": "string",
- "published": false,
- "start_type": "manual",
- "hints": [
- {
- "id": 2147483647,
- "title": "string",
- "icon": "string",
- "description": "string"
}
], - "team": {
- "name": "string",
- "active": true,
- "checked": false,
- "lineup": [
- {
- "nickname": "crux",
- "captain": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "had_game_access": 100
}, - "feedback": {
- "metrics": [
- {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}
], - "feedback": "string",
- "user": {
- "nickname": "crux",
- "captain": true,
- "last_online_change": -2147483648
}, - "team": {
- "name": "string",
- "active": true,
- "checked": false,
- "lineup": [
- {
- "nickname": "crux",
- "captain": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "had_game_access": 100
}
}, - "teams_limit": 1024,
- "stat": "VISIBLE",
- "rank_type": "TIME",
- "rank_value": "TIME",
- "rank_var_1": 2147483647,
- "rank_sort_1": "ASC",
- "rank_var_2": 2147483647,
- "rank_sort_2": "ASC",
- "early_birds_global": true,
- "screenplay_public": true,
- "saved_at": {
- ".sv": "timestamp"
}, - "charge_type": "TEAM",
- "franchise_id": 2147483647,
- "payment_methods": [
- "sberbank"
], - "order": {
- "qq": 1500,
- "fiat": 1500,
- "cash": 1000000,
- "discount": 1500,
- "deposit": 1500,
- "players": 1000,
- "slots": 100,
- "promocode": {
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "team_id": 2147483647,
- "public_use": 1,
- "details": "string",
- "franchise_id": 2147483647,
- "logic": "simple"
}, - "author_cash": 1000000,
- "paid_to_author": 1000000,
- "referral": 1000000,
- "own_referral": 1000000,
- "service": 1000000
}
}{- "id": 2147483647,
- "city": {
- "id": 2147483647,
- "name": "string",
- "region": "string",
- "name_local": "string"
}, - "name": "This Is The Game",
- "schema": "LINEAR",
- "start": "2019-08-24T14:15:22Z",
- "enroll_until": "2019-08-24T14:15:22Z",
- "description": "string",
- "social_text": "string",
- "timing": "2-4 hours",
- "timing_for": "Leaders",
- "mileage": 50,
- "max_players": 1,
- "cost": 1500,
- "cost_qq": 1000000,
- "cost_loyalty": 1000000,
- "cost_discounted": 1000000,
- "cost_discounted_end": "2019-08-24T14:15:22Z",
- "tags": [
- "PHOTO"
], - "transport": "NONE",
- "created": "2019-08-24T14:15:22Z",
- "owner": 2147483647,
- "authors": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "owner": false,
- "rating": {
- "total_games": {
- "real": 1000000,
- "virtual": 1000000
}, - "games_written": {
- "real": 1000000,
- "virtual": 1000000
}, - "feedback": {
- "real": 5,
- "virtual": 5
}, - "feedback_full": {
- "real": 5,
- "virtual": 5
}
}
}
], - "briefing_geo": "(56.129129,40.408397)",
- "briefing_time": "2019-08-24T14:15:22Z",
- "briefing_txt": "string",
- "published": false,
- "score": 5,
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "start_type": "manual",
- "hints": [
- {
- "id": 2147483647,
- "title": "string",
- "icon": "string",
- "description": "string"
}
], - "testing": false,
- "running": false,
- "start_in": 2147483647,
- "enroll_closes_in": 2147483647,
- "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "feedback": {
- "metrics": [
- {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}
], - "feedback": "string",
- "user": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "created": "2019-08-24T14:15:22Z"
}, - "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "teams": [
- {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}
], - "teams_count": 1000000,
- "teams_limit": 1024,
- "started_ago": 2147483647,
- "closed": true,
- "closed_at": "2019-08-24T14:15:22Z",
- "metrics": [
- {
- "metric": "THINK",
- "score": 5
}, - {
- "metric": "THINK",
- "score": 5
}, - {
- "metric": "THINK",
- "score": 5
}
], - "stat": "VISIBLE",
- "rank_type": "TIME",
- "rank_value": "TIME",
- "objectivity": 1,
- "rank_var_1": 2147483647,
- "rank_sort_1": "ASC",
- "rank_var_2": 2147483647,
- "rank_sort_2": "ASC",
- "early_birds_global": true,
- "screenplay_public": true,
- "social_messaging": {
- "ig": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "tg": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "vk": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "push": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}
}, - "saved_at": {
- ".sv": "timestamp"
}, - "charge_type": "TEAM",
- "franchise_id": 2147483647,
- "payment_methods": [
- "sberbank"
], - "order": {
- "qq": 1500,
- "fiat": 1500,
- "cash": 1000000,
- "discount": 1500,
- "deposit": 1500,
- "players": 1000,
- "slots": 100,
- "created": "2019-08-24T14:15:22Z",
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "team": "string",
- "team_id": 2147483647,
- "user": "crux",
- "used": 1000000,
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise_id": 2147483647,
- "logic": "simple"
}, - "author_cash": 1000000,
- "paid_to_author": 1000000,
- "referral": 1000000,
- "own_referral": 1000000,
- "service": 1000000
}
}Клонирование игры
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| to | integer or null <int32> (Id-wo) [ 0 .. 2147483647 ] Если указано - клонируется только сценарий, без анонса. |
{- "to": 2147483647
}{- "id": 2147483647
}Обновление параметров игры
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| city_id | integer or null <int32> (Id-wo) [ 0 .. 2147483647 ] Id |
| name required | string [ 3 .. 180 ] characters [\p{Print}]* Название игры |
| schema | string Default: "LINEAR" Enum: "LINEAR" "RANDOM" "ALL" "CUSTOM" Схема выдачи заданий. |
| start required | string or null <date-time> (DateTimeTZ) <= 32 characters Дата и время, с таймзоной |
| enroll_until | string or null <date-time> (DateTimeTZ) <= 32 characters Дата и время, с таймзоной |
| description | string or null [ 0 .. 32768 ] characters [\p{Print}]* Описание игры |
| social_text | string or null [ 0 .. 16384 ] characters [\p{Print}]* Текст для соцсетей |
| timing | string or null [ 0 .. 64 ] characters [\p{Print}]* Ожидаемое время прохождения. |
| timing_for | string or null [ 0 .. 64 ] characters [\p{Print}]* На кого рассчитано ожидаемое время прохождения |
| mileage | integer or null <int32> [ 0 .. 40075 ] Минимальный пробег на игре в километрах. |
| max_players required | integer <int32> [ 1 .. 100 ] Максимальное количество игроков в команде. |
| cost required | number <float> [ 0 .. 1000000 ] Стоимость участия в рублях. |
| tags required | Array of strings (GameTag) [ 1 .. 7 ] items unique Items Enum: "PHOTO" "BRAIN" "COMBAT" "SNOOP" "TOUR" "MAZE" "STREET" "URBAN" Типы игры |
| transport required | string (GameTransport) Enum: "NONE" "ANY" "CAR" "FOOT" "BIKE" Средство передвижения |
| owner | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| briefing_geo | string or null (GeoPoint) [ 5 .. 26 ] characters ^\((-?\d+\.\d+),(-?\d+\.\d+)\)$ Точка на карте |
| briefing_time | string or null <date-time> (DateTimeTZ) <= 32 characters Дата и время, с таймзоной |
| briefing_txt | string or null [ 0 .. 1024 ] characters [\p{Print}]* Место предыгрового брифинга |
| published | boolean Default: false Игра доступна для поиска и регистрации. |
| start_type | string Default: "auto" Enum: "manual" "auto" "team" Ручной или автоматический старт игры |
Array of objects or null (GameHint) [ 0 .. 32 ] items Раздел подготовки к квесту. | |
| teams_limit | integer or null <int32> [ 0 .. 1024 ] Максимальное количество команд. |
| stat | string (GameStatVisibility) Enum: "VISIBLE" "OWN" "PASSED" "HIDDEN" Видимость статистики |
| rank_type | string (GameRankType) Enum: "TIME" "LEVELS" "GAME" "CUSTOM" "SCORE" Метод расстановки мест. |
| rank_value | string (GameRankValue) Enum: "TIME" "SCORE" Игра на время или на баллы. |
| rank_var_1 | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| rank_sort_1 | string or null (GameRankSort) Enum: "ASC" "DESC" |
| rank_var_2 | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| rank_sort_2 | string or null (GameRankSort) Enum: "ASC" "DESC" |
| early_birds_global | boolean or null Default: true Применяются глобальные настройки скидок за раннюю регистрацию. |
| screenplay_public | boolean or null Default: true Просмотр сценария доступен игрокам после закрытия игры. |
object (RDBTimestamp) | |
| charge_type | string (GameChargeType) Enum: "TEAM" "PLAYER" Оплата за участника или за команду. |
| franchise_id | integer or null <int32> (Id-nullable) [ 0 .. 2147483647 ] Id-nullable |
| payment_methods | Array of strings or null (PaymentType) [ 0 .. 100 ] items Enum: "sberbank" "tochka" "yoomoney" "cash" |
object or null (BalanceLogItemOrder) Данные заказа регистрации. |
{- "city_id": 2147483647,
- "name": "This Is The Game",
- "schema": "LINEAR",
- "start": "2019-08-24T14:15:22Z",
- "enroll_until": "2019-08-24T14:15:22Z",
- "description": "string",
- "social_text": "string",
- "timing": "2-4 hours",
- "timing_for": "Leaders",
- "mileage": 50,
- "max_players": 1,
- "cost": 1500,
- "tags": [
- "PHOTO"
], - "transport": "NONE",
- "owner": 2147483647,
- "briefing_geo": "(56.129129,40.408397)",
- "briefing_time": "2019-08-24T14:15:22Z",
- "briefing_txt": "string",
- "published": false,
- "start_type": "manual",
- "hints": [
- {
- "id": 2147483647,
- "title": "string",
- "icon": "string",
- "description": "string"
}
], - "team": {
- "name": "string",
- "active": true,
- "checked": false,
- "lineup": [
- {
- "nickname": "crux",
- "captain": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "had_game_access": 100
}, - "feedback": {
- "metrics": [
- {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}
], - "feedback": "string",
- "user": {
- "nickname": "crux",
- "captain": true,
- "last_online_change": -2147483648
}, - "team": {
- "name": "string",
- "active": true,
- "checked": false,
- "lineup": [
- {
- "nickname": "crux",
- "captain": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "had_game_access": 100
}
}, - "teams_limit": 1024,
- "stat": "VISIBLE",
- "rank_type": "TIME",
- "rank_value": "TIME",
- "rank_var_1": 2147483647,
- "rank_sort_1": "ASC",
- "rank_var_2": 2147483647,
- "rank_sort_2": "ASC",
- "early_birds_global": true,
- "screenplay_public": true,
- "saved_at": {
- ".sv": "timestamp"
}, - "charge_type": "TEAM",
- "franchise_id": 2147483647,
- "payment_methods": [
- "sberbank"
], - "order": {
- "qq": 1500,
- "fiat": 1500,
- "cash": 1000000,
- "discount": 1500,
- "deposit": 1500,
- "players": 1000,
- "slots": 100,
- "promocode": {
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "team_id": 2147483647,
- "public_use": 1,
- "details": "string",
- "franchise_id": 2147483647,
- "logic": "simple"
}, - "author_cash": 1000000,
- "paid_to_author": 1000000,
- "referral": 1000000,
- "own_referral": 1000000,
- "service": 1000000
}
}{- "id": 2147483647,
- "city": {
- "id": 2147483647,
- "name": "string",
- "region": "string",
- "name_local": "string"
}, - "name": "This Is The Game",
- "schema": "LINEAR",
- "start": "2019-08-24T14:15:22Z",
- "enroll_until": "2019-08-24T14:15:22Z",
- "description": "string",
- "social_text": "string",
- "timing": "2-4 hours",
- "timing_for": "Leaders",
- "mileage": 50,
- "max_players": 1,
- "cost": 1500,
- "cost_qq": 1000000,
- "cost_loyalty": 1000000,
- "cost_discounted": 1000000,
- "cost_discounted_end": "2019-08-24T14:15:22Z",
- "tags": [
- "PHOTO"
], - "transport": "NONE",
- "created": "2019-08-24T14:15:22Z",
- "owner": 2147483647,
- "authors": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "owner": false,
- "rating": {
- "total_games": {
- "real": 1000000,
- "virtual": 1000000
}, - "games_written": {
- "real": 1000000,
- "virtual": 1000000
}, - "feedback": {
- "real": 5,
- "virtual": 5
}, - "feedback_full": {
- "real": 5,
- "virtual": 5
}
}
}
], - "briefing_geo": "(56.129129,40.408397)",
- "briefing_time": "2019-08-24T14:15:22Z",
- "briefing_txt": "string",
- "published": false,
- "score": 5,
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "start_type": "manual",
- "hints": [
- {
- "id": 2147483647,
- "title": "string",
- "icon": "string",
- "description": "string"
}
], - "testing": false,
- "running": false,
- "start_in": 2147483647,
- "enroll_closes_in": 2147483647,
- "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "feedback": {
- "metrics": [
- {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}, - {
- "metric": "THINK",
- "score": 1
}
], - "feedback": "string",
- "user": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "team": {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}, - "created": "2019-08-24T14:15:22Z"
}, - "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "teams": [
- {
- "id": 2147483647,
- "name": "string",
- "captain": 2147483647,
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "checked": false,
- "test": false,
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "deletable": true,
- "transferable": true,
- "running": false,
- "closed": false,
- "finished": false,
- "main_run": true,
- "place": 1000000,
- "lineup": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}
], - "deferred_pay": false,
- "slots": 100,
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "used": 1000000,
- "team": "string",
- "team_id": 2147483647,
- "user": "string",
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise": {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}, - "logic": "simple"
}, - "had_game_access": 100
}
], - "teams_count": 1000000,
- "teams_limit": 1024,
- "started_ago": 2147483647,
- "closed": true,
- "closed_at": "2019-08-24T14:15:22Z",
- "metrics": [
- {
- "metric": "THINK",
- "score": 5
}, - {
- "metric": "THINK",
- "score": 5
}, - {
- "metric": "THINK",
- "score": 5
}
], - "stat": "VISIBLE",
- "rank_type": "TIME",
- "rank_value": "TIME",
- "objectivity": 1,
- "rank_var_1": 2147483647,
- "rank_sort_1": "ASC",
- "rank_var_2": 2147483647,
- "rank_sort_2": "ASC",
- "early_birds_global": true,
- "screenplay_public": true,
- "social_messaging": {
- "ig": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "tg": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "vk": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}, - "push": {
- "status": "ENABLED",
- "enabled_in": -2147483648
}
}, - "saved_at": {
- ".sv": "timestamp"
}, - "charge_type": "TEAM",
- "franchise_id": 2147483647,
- "payment_methods": [
- "sberbank"
], - "order": {
- "qq": 1500,
- "fiat": 1500,
- "cash": 1000000,
- "discount": 1500,
- "deposit": 1500,
- "players": 1000,
- "slots": 100,
- "created": "2019-08-24T14:15:22Z",
- "promocode": {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "team": "string",
- "team_id": 2147483647,
- "user": "crux",
- "used": 1000000,
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise_id": 2147483647,
- "logic": "simple"
}, - "author_cash": 1000000,
- "paid_to_author": 1000000,
- "referral": 1000000,
- "own_referral": 1000000,
- "service": 1000000
}
}| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| key required | string [ 1 .. 64 ] characters ^[-A-Za-z0-9_]+$ |
{- "axis": "horizontal",
- "flex": 1000,
- "type": "empty",
- "settings": {
- "alias": "string"
}, - "controlData": {
- "cellWidth": 0.1
}, - "areas": [
- { }
]
}Сохранение дашборда
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| key required | string [ 1 .. 64 ] characters ^[-A-Za-z0-9_]+$ |
| axis | string Enum: "horizontal" "vertical" |
| flex | number <double> [ 0 .. 1000 ] |
| type | string or null Enum: "empty" "infoBlock" "infoBlockSingleTeam" "globalTimer" "teamTimer" "top" "eventLog" |
object or null | |
object or null | |
| areas | Array of objects (DashboardArea) [ 0 .. 10 ] items |
{- "axis": "horizontal",
- "flex": 1000,
- "type": "empty",
- "settings": {
- "alias": "string"
}, - "controlData": {
- "cellWidth": 0.1
}, - "areas": [
- { }
]
}{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}Погашение авторского долга. Авторы, имеющие отрицательный баланс, который может возникнуть из-за приёма взносов наличными, не могут запускать игры до погашения долга. Игры с автоматическим стартом в указанное время переводятся в режим ручного старта.
| pay_by required | string (PaymentType) Enum: "sberbank" "tochka" "yoomoney" "cash" |
{- "pay_by": "sberbank"
}{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}Загрузка картинки анонса
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
Картинка анонса
{- "files": [
- {
- "filename": "string",
- "url": "string",
- "size": 2147483647,
- "created": "2019-08-24T14:15:22Z",
- "content_type": "string",
- "status": "STORED"
}
]
}Список файлов игры
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
{- "files": [
- {
- "filename": "string",
- "url": "string",
- "size": 2147483647,
- "created": "2019-08-24T14:15:22Z",
- "content_type": "string",
- "status": "STORED"
}
]
}Загрузка файла к игре
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
Произвольный файл к игре
{- "files": [
- {
- "filename": "string",
- "url": "string",
- "size": 2147483647,
- "created": "2019-08-24T14:15:22Z",
- "content_type": "string",
- "status": "STORED"
}
]
}Удаление файла к игре.
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| filename required | string [ 1 .. 2048 ] characters [\p{Print}]* Имя файла для удаления. |
{- "filename": "string"
}{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}Подготовить ссылку для загрузки
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
required | Array of objects [ 0 .. 100 ] items |
{- "uploads": [
- {
- "filename": "string",
- "content_type": "string",
- "size": 0
}
]
}{- "links": [
- "string"
]
}Старт тестирования автором.
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| team_per_author | boolean Default: false Создавать каждому соавтору по отдельной команде. |
{- "team_per_author": false
}{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}Схема игры
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
{- "levels": [
- {
- "id": 2147483647,
- "name": "string",
- "codes": [
- {
- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "team": {
- "id": 2147483647,
- "name": "string"
}, - "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}
], - "duration": "string",
- "infoblocks": [
- {
- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}
], - "sort": -2147483648,
- "autoclose_penalty_time": "string",
- "is_cut_off": false,
- "flow": "LEGEND",
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "blocks_sort_by": "SORT",
- "chart": {
- "x": 0.1,
- "y": 0.1
}, - "code_name": "string"
}
], - "environment": {
- "chart": {
- "start": {
- "x": 0.1,
- "y": 0.1
}, - "finish": {
- "x": 0.1,
- "y": 0.1
}, - "enrollment": {
- "x": 0.1,
- "y": 0.1
}, - "unenrollment": {
- "x": 0.1,
- "y": 0.1
}
}, - "vars": [
- {
- "id": 2147483647,
- "name": "string",
- "scope": "TEAM",
- "type": "string",
- "initial": 0,
- "color_id": 2147483647,
- "title": "string",
- "details": "string"
}
], - "timers": [
- {
- "id": 2147483647,
- "name": "string",
- "scope": "TEAM"
}
]
}, - "transitions": [
- {
- "id": 2147483647,
- "event": "Start",
- "condition": {
- "type": "And",
- "args": [
- null
]
}, - "action": { },
- "action_else": { },
- "chart": {
- "x": 0.1,
- "y": 0.1
}
}
], - "messages": [
- {
- "id": 2147483647,
- "levels": [
- 2147483647
], - "teams": [
- 2147483647
], - "message": "string"
}
], - "times": [
- {
- "id": 2147483647,
- "levels": [
- 2147483647
], - "teams": [
- 2147483647
], - "message": "string",
- "change_time": -2147483648,
- "is_manual": false
}
], - "access": { }
}Генерирует начальный шаблон игры. Параметры запроса зависят от типа генератора.
LINEAR
Уровни следуют один за другим. В каждый момент времени открыт только один, текущий уровень. В шаблоне уровня можно задать время до автоперехода, структуру инфоблоков.
Параметры:
level_count # количество игровых уровней
level # шаблон игрового уровня
legend # шаблон вступительного уровня (легенды)
finish # шаблон финального уровня
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| type required | string |
| level_count required | integer <int32> [ 1 .. 100 ] |
required | object (GameLevel) Уровень игры |
object (GameLevel) Уровень игры | |
object (GameLevel) Уровень игры |
{- "type": "LINEAR",
- "level_count": 1,
- "level": {
- "id": 2147483647,
- "name": "string",
- "codes": [
- {
- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}
], - "duration": "string",
- "infoblocks": [
- {
- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}
], - "sort": -2147483648,
- "autoclose_penalty_time": "string",
- "is_cut_off": false,
- "flow": "LEGEND",
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "blocks_sort_by": "SORT",
- "chart": {
- "x": 0.1,
- "y": 0.1
}, - "code_name": "string"
}, - "legend": {
- "id": 2147483647,
- "name": "string",
- "codes": [
- {
- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}
], - "duration": "string",
- "infoblocks": [
- {
- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}
], - "sort": -2147483648,
- "autoclose_penalty_time": "string",
- "is_cut_off": false,
- "flow": "LEGEND",
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "blocks_sort_by": "SORT",
- "chart": {
- "x": 0.1,
- "y": 0.1
}, - "code_name": "string"
}, - "finish": {
- "id": 2147483647,
- "name": "string",
- "codes": [
- {
- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}
], - "duration": "string",
- "infoblocks": [
- {
- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}
], - "sort": -2147483648,
- "autoclose_penalty_time": "string",
- "is_cut_off": false,
- "flow": "LEGEND",
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "blocks_sort_by": "SORT",
- "chart": {
- "x": 0.1,
- "y": 0.1
}, - "code_name": "string"
}
}{- "levels": [
- {
- "id": 2147483647,
- "name": "string",
- "codes": [
- {
- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "team": {
- "id": 2147483647,
- "name": "string"
}, - "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}
], - "duration": "string",
- "infoblocks": [
- {
- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}
], - "sort": -2147483648,
- "autoclose_penalty_time": "string",
- "is_cut_off": false,
- "flow": "LEGEND",
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "blocks_sort_by": "SORT",
- "chart": {
- "x": 0.1,
- "y": 0.1
}, - "code_name": "string"
}
], - "environment": {
- "chart": {
- "start": {
- "x": 0.1,
- "y": 0.1
}, - "finish": {
- "x": 0.1,
- "y": 0.1
}, - "enrollment": {
- "x": 0.1,
- "y": 0.1
}, - "unenrollment": {
- "x": 0.1,
- "y": 0.1
}
}, - "vars": [
- {
- "id": 2147483647,
- "name": "string",
- "scope": "TEAM",
- "type": "string",
- "initial": 0,
- "color_id": 2147483647,
- "title": "string",
- "details": "string"
}
], - "timers": [
- {
- "id": 2147483647,
- "name": "string",
- "scope": "TEAM"
}
]
}, - "transitions": [
- {
- "id": 2147483647,
- "event": "Start",
- "condition": {
- "type": "And",
- "args": [
- null
]
}, - "action": { },
- "action_else": { },
- "chart": {
- "x": 0.1,
- "y": 0.1
}
}
], - "messages": [
- {
- "id": 2147483647,
- "levels": [
- 2147483647
], - "teams": [
- 2147483647
], - "message": "string"
}
], - "times": [
- {
- "id": 2147483647,
- "levels": [
- 2147483647
], - "teams": [
- 2147483647
], - "message": "string",
- "change_time": -2147483648,
- "is_manual": false
}
], - "access": { }
}SEARCHABLE
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "levels": [
- {
- "id": 2147483647,
- "name": "string",
- "codes": [
- {
- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "team": {
- "id": 2147483647,
- "name": "string"
}, - "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}
], - "duration": "string",
- "infoblocks": [
- {
- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}
], - "sort": -2147483648,
- "autoclose_penalty_time": "string",
- "is_cut_off": false,
- "flow": "LEGEND",
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "blocks_sort_by": "SORT",
- "chart": {
- "x": 0.1,
- "y": 0.1
}, - "code_name": "string"
}
], - "records": 2147483647
}Создание уровня
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| id | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| name | string or null [ 1 .. 64 ] characters [\p{Print}]* Название уровня |
Array of objects or null (Code) [ 0 .. 1024 ] items Коды уровня | |
| duration | string or null (Duration) <= 32 characters ^\d+:[0-5]\d:[0-5]\d$ Время (HH:MM:SS) |
Array of IBText (object) or IBPhoto (object) or IBPhotoCompare (object) or IBFreeAnswer (object) or IBGrid (object) or IBVars (object) or null (LevelInfoBlock) [ 1 .. 300 ] items Текстовые блоки уровня | |
| sort | integer or null <int32> [ -2147483648 .. 2147483647 ] Порядок сортировки уровней. |
| autoclose_penalty_time | string or null (DurationRelaxed) <= 33 characters ^-?\d+:[0-5]\d:[0-5]\d$ Время (HH:MM:SS), положительное или отрицательное.
|
| is_cut_off | boolean Default: false Уровень-заглушка. Время, проведённое на нём, не учитывается в статистике и итогах. |
| flow | string Default: "LEVEL" Enum: "LEGEND" "LEVEL" "FINAL" Тип уровня для генератора переходов. |
| before_open | string (Visibility) Enum: "VISIBLE" "HIDDEN" "CONTENT" |
| after_close | string (Visibility) Enum: "VISIBLE" "HIDDEN" "CONTENT" |
| blocks_sort_by | string Default: "SORT" Enum: "SORT" "OPENED" Сортировать блоки во время прохождения квеста по заданной автором сортировке или по мере открытия игроками. |
object or null (ChartOffset) | |
| code_name | string or null (GameVariableName) [ 1 .. 64 ] characters ^[-A-Za-z0-9_]+$ Название переменной |
{- "id": 2147483647,
- "name": "string",
- "codes": [
- {
- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}
], - "duration": "string",
- "infoblocks": [
- {
- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}
], - "sort": -2147483648,
- "autoclose_penalty_time": "string",
- "is_cut_off": false,
- "flow": "LEGEND",
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "blocks_sort_by": "SORT",
- "chart": {
- "x": 0.1,
- "y": 0.1
}, - "code_name": "string"
}{- "id": 2147483647,
- "name": "string",
- "codes": [
- {
- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "team": {
- "id": 2147483647,
- "name": "string"
}, - "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}
], - "duration": "string",
- "infoblocks": [
- {
- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}
], - "sort": -2147483648,
- "autoclose_penalty_time": "string",
- "is_cut_off": false,
- "flow": "LEGEND",
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "blocks_sort_by": "SORT",
- "chart": {
- "x": 0.1,
- "y": 0.1
}, - "code_name": "string"
}Изменение сортировки уровней
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| id required | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| sort required | integer <int32> [ -2147483648 .. 2147483647 ] |
[- {
- "id": 2147483647,
- "sort": -2147483648
}
]{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}Сохранение полной структуры уровня
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| id | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| name | string or null [ 1 .. 64 ] characters [\p{Print}]* Название уровня |
Array of objects or null (Code) [ 0 .. 1024 ] items Коды уровня | |
| duration | string or null (Duration) <= 32 characters ^\d+:[0-5]\d:[0-5]\d$ Время (HH:MM:SS) |
Array of IBText (object) or IBPhoto (object) or IBPhotoCompare (object) or IBFreeAnswer (object) or IBGrid (object) or IBVars (object) or null (LevelInfoBlock) [ 1 .. 300 ] items Текстовые блоки уровня | |
| sort | integer or null <int32> [ -2147483648 .. 2147483647 ] Порядок сортировки уровней. |
| autoclose_penalty_time | string or null (DurationRelaxed) <= 33 characters ^-?\d+:[0-5]\d:[0-5]\d$ Время (HH:MM:SS), положительное или отрицательное.
|
| is_cut_off | boolean Default: false Уровень-заглушка. Время, проведённое на нём, не учитывается в статистике и итогах. |
| flow | string Default: "LEVEL" Enum: "LEGEND" "LEVEL" "FINAL" Тип уровня для генератора переходов. |
| before_open | string (Visibility) Enum: "VISIBLE" "HIDDEN" "CONTENT" |
| after_close | string (Visibility) Enum: "VISIBLE" "HIDDEN" "CONTENT" |
| blocks_sort_by | string Default: "SORT" Enum: "SORT" "OPENED" Сортировать блоки во время прохождения квеста по заданной автором сортировке или по мере открытия игроками. |
object or null (ChartOffset) | |
| code_name | string or null (GameVariableName) [ 1 .. 64 ] characters ^[-A-Za-z0-9_]+$ Название переменной |
{- "id": 2147483647,
- "name": "string",
- "codes": [
- {
- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}
], - "duration": "string",
- "infoblocks": [
- {
- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}
], - "sort": -2147483648,
- "autoclose_penalty_time": "string",
- "is_cut_off": false,
- "flow": "LEGEND",
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "blocks_sort_by": "SORT",
- "chart": {
- "x": 0.1,
- "y": 0.1
}, - "code_name": "string"
}{- "id": 2147483647,
- "name": "string",
- "codes": [
- {
- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "team": {
- "id": 2147483647,
- "name": "string"
}, - "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}
], - "duration": "string",
- "infoblocks": [
- {
- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}
], - "sort": -2147483648,
- "autoclose_penalty_time": "string",
- "is_cut_off": false,
- "flow": "LEGEND",
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "blocks_sort_by": "SORT",
- "chart": {
- "x": 0.1,
- "y": 0.1
}, - "code_name": "string"
}Уровень по ID
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
{- "id": 2147483647,
- "name": "string",
- "codes": [
- {
- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "team": {
- "id": 2147483647,
- "name": "string"
}, - "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}
], - "duration": "string",
- "infoblocks": [
- {
- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}
], - "sort": -2147483648,
- "autoclose_penalty_time": "string",
- "is_cut_off": false,
- "flow": "LEGEND",
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "blocks_sort_by": "SORT",
- "chart": {
- "x": 0.1,
- "y": 0.1
}, - "code_name": "string"
}Редактирование уровня
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
| name | string or null [ 1 .. 64 ] characters [\p{Print}]* Название уровня |
| duration | string or null (Duration) <= 32 characters ^\d+:[0-5]\d:[0-5]\d$ Время (HH:MM:SS) |
| sort | integer or null <int32> [ -2147483648 .. 2147483647 ] Порядок сортировки уровней. |
| autoclose_penalty_time | string or null (DurationRelaxed) <= 33 characters ^-?\d+:[0-5]\d:[0-5]\d$ Время (HH:MM:SS), положительное или отрицательное.
|
| is_cut_off | boolean Default: false Уровень-заглушка. Время, проведённое на нём, не учитывается в статистике и итогах. |
| flow | string Default: "LEVEL" Enum: "LEGEND" "LEVEL" "FINAL" Тип уровня для генератора переходов. |
| before_open | string (Visibility) Enum: "VISIBLE" "HIDDEN" "CONTENT" |
| after_close | string (Visibility) Enum: "VISIBLE" "HIDDEN" "CONTENT" |
{- "name": "string",
- "duration": "string",
- "sort": -2147483648,
- "autoclose_penalty_time": "string",
- "is_cut_off": false,
- "flow": "LEGEND",
- "before_open": "VISIBLE",
- "after_close": "VISIBLE"
}{- "id": 2147483647,
- "name": "string",
- "codes": [
- {
- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "team": {
- "id": 2147483647,
- "name": "string"
}, - "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}
], - "duration": "string",
- "infoblocks": [
- {
- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}
], - "sort": -2147483648,
- "autoclose_penalty_time": "string",
- "is_cut_off": false,
- "flow": "LEGEND",
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "blocks_sort_by": "SORT",
- "chart": {
- "x": 0.1,
- "y": 0.1
}, - "code_name": "string"
}Удаление уровня
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}Клонирование уровня
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
{- "id": 2147483647,
- "name": "string",
- "codes": [
- {
- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "team": {
- "id": 2147483647,
- "name": "string"
}, - "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}
], - "duration": "string",
- "infoblocks": [
- {
- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}
], - "sort": -2147483648,
- "autoclose_penalty_time": "string",
- "is_cut_off": false,
- "flow": "LEGEND",
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "blocks_sort_by": "SORT",
- "chart": {
- "x": 0.1,
- "y": 0.1
}, - "code_name": "string"
}SEARCHABLE
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "infoblocks": [
- {
- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}
], - "records": 2147483647
}Создание инфоблока
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
| id | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| name | string or null [ 1 .. 180 ] characters [\p{Print}]* Название блока |
| start | string or null <= 32 characters ^\d+:[0-5]\d:[0-5]\d$ Время (HH:MM:SS), через которое блок откроется
|
| code | Array of strings or null or null (CodeVariant) [ 0 .. 16 ] items unique [ items [ 1 .. 512 ] characters [\p{Print}]* ] Варианты кода, закрывающего текст блока |
| code_opening | Array of strings or null or null (CodeVariant) [ 0 .. 16 ] items unique [ items [ 1 .. 512 ] characters [\p{Print}]* ] Варианты кода, открывающего текст блока |
| text_before | string or null [ 0 .. 65535 ] characters [\p{Print}]* Текст блока |
| text | string or null [ 0 .. 65535 ] characters [\p{Print}]* Текст блока |
| text_after | string or null [ 0 .. 65535 ] characters [\p{Print}]* Текст блока |
| button | string or null [ 1 .. 32 ] characters [\p{Print}]* Текст кнопки для открытия блока. Если задан - блок можно открыть по кнопке. |
| type | string or null [ 1 .. 32 ] characters [\p{Print}]* Название группы/типа блоков. |
| button_early | boolean Default: false Кнопка открытия блока доступна до времени |
| button_penalty_time | string or null (DurationRelaxed) <= 33 characters ^-?\d+:[0-5]\d:[0-5]\d$ Время (HH:MM:SS), положительное или отрицательное.
|
| code_change_time | string or null (DurationRelaxed) <= 33 characters ^-?\d+:[0-5]\d:[0-5]\d$ Время (HH:MM:SS), положительное или отрицательное.
|
| sort | integer or null <int32> [ -2147483648 .. 2147483647 ] Порядок сортировки блоков. |
| before_open | string (Visibility) Enum: "VISIBLE" "HIDDEN" "CONTENT" |
| after_close | string (Visibility) Enum: "VISIBLE" "HIDDEN" "CONTENT" |
| code_name | string or null (GameVariableName) [ 1 .. 64 ] characters ^[-A-Za-z0-9_]+$ Название переменной |
| layout | string (LevelInfoblockLayout) Enum: "CLASSIC" "BORDERLESS" |
| logic required | string Value: "text" |
{- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}{- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}Инфоблок по ID
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
| block_id required | integer <int32> [ 1 .. 2147483647 ] ID инфоблока |
{- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}Редактирование инфоблока
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
| block_id required | integer <int32> [ 1 .. 2147483647 ] ID инфоблока |
| id | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| name | string or null [ 1 .. 180 ] characters [\p{Print}]* Название блока |
| start | string or null <= 32 characters ^\d+:[0-5]\d:[0-5]\d$ Время (HH:MM:SS), через которое блок откроется
|
| code | Array of strings or null or null (CodeVariant) [ 0 .. 16 ] items unique [ items [ 1 .. 512 ] characters [\p{Print}]* ] Варианты кода, закрывающего текст блока |
| code_opening | Array of strings or null or null (CodeVariant) [ 0 .. 16 ] items unique [ items [ 1 .. 512 ] characters [\p{Print}]* ] Варианты кода, открывающего текст блока |
| text_before | string or null [ 0 .. 65535 ] characters [\p{Print}]* Текст блока |
| text | string or null [ 0 .. 65535 ] characters [\p{Print}]* Текст блока |
| text_after | string or null [ 0 .. 65535 ] characters [\p{Print}]* Текст блока |
| button | string or null [ 1 .. 32 ] characters [\p{Print}]* Текст кнопки для открытия блока. Если задан - блок можно открыть по кнопке. |
| type | string or null [ 1 .. 32 ] characters [\p{Print}]* Название группы/типа блоков. |
| button_early | boolean Default: false Кнопка открытия блока доступна до времени |
| button_penalty_time | string or null (DurationRelaxed) <= 33 characters ^-?\d+:[0-5]\d:[0-5]\d$ Время (HH:MM:SS), положительное или отрицательное.
|
| code_change_time | string or null (DurationRelaxed) <= 33 characters ^-?\d+:[0-5]\d:[0-5]\d$ Время (HH:MM:SS), положительное или отрицательное.
|
| sort | integer or null <int32> [ -2147483648 .. 2147483647 ] Порядок сортировки блоков. |
| before_open | string (Visibility) Enum: "VISIBLE" "HIDDEN" "CONTENT" |
| after_close | string (Visibility) Enum: "VISIBLE" "HIDDEN" "CONTENT" |
| code_name | string or null (GameVariableName) [ 1 .. 64 ] characters ^[-A-Za-z0-9_]+$ Название переменной |
| layout | string (LevelInfoblockLayout) Enum: "CLASSIC" "BORDERLESS" |
| logic required | string Value: "text" |
{- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}{- "id": 2147483647,
- "name": "string",
- "start": "string",
- "code": [
- "string"
], - "code_opening": [
- "string"
], - "text_before": "string",
- "text": "string",
- "text_after": "string",
- "button": "string",
- "type": "Bonuses",
- "button_early": false,
- "button_penalty_time": "string",
- "code_change_time": "string",
- "sort": -2147483648,
- "before_open": "VISIBLE",
- "after_close": "VISIBLE",
- "code_name": "string",
- "layout": "CLASSIC",
- "logic": "text"
}Удаление инфоблока
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
| block_id required | integer <int32> [ 1 .. 2147483647 ] ID инфоблока |
{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}SEARCHABLE
Список кодов уровня
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
{- "codes": [
- {
- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "team": {
- "id": 2147483647,
- "name": "string"
}, - "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}
], - "records": 2147483647
}Добавить код
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
| id | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| name | string or null [ 1 .. 128 ] characters [\p{Print}]* |
| code required | Array of strings or null (CodeVariant) [ 0 .. 16 ] items unique [ items [ 1 .. 512 ] characters [\p{Print}]* ] Варианты кода |
| change_time | string or null (DurationRelaxed) <= 33 characters ^-?\d+:[0-5]\d:[0-5]\d$ Время (HH:MM:SS), положительное или отрицательное.
|
| is_regex | |
| code_name | string or null (GameVariableName) [ 1 .. 64 ] characters ^[-A-Za-z0-9_]+$ Название переменной |
| sort | integer or null <int32> [ -2147483648 .. 2147483647 ] |
{- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}{- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "team": {
- "id": 2147483647,
- "name": "string"
}, - "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}Код по ID
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| code_id required | integer <int32> [ 1 .. 2147483647 ] ID кода |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
{- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "team": {
- "id": 2147483647,
- "name": "string"
}, - "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}Изменение кода
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| code_id required | integer <int32> [ 1 .. 2147483647 ] ID кода |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
| id | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| name | string or null [ 1 .. 128 ] characters [\p{Print}]* |
| code required | Array of strings or null (CodeVariant) [ 0 .. 16 ] items unique [ items [ 1 .. 512 ] characters [\p{Print}]* ] Варианты кода |
| change_time | string or null (DurationRelaxed) <= 33 characters ^-?\d+:[0-5]\d:[0-5]\d$ Время (HH:MM:SS), положительное или отрицательное.
|
| is_regex | |
| code_name | string or null (GameVariableName) [ 1 .. 64 ] characters ^[-A-Za-z0-9_]+$ Название переменной |
| sort | integer or null <int32> [ -2147483648 .. 2147483647 ] |
{- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}{- "id": 2147483647,
- "name": "string",
- "code": [
- "string"
], - "change_time": "string",
- "team": {
- "id": 2147483647,
- "name": "string"
}, - "is_regex": false,
- "code_name": "string",
- "sort": -2147483648
}Удалить код
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| code_id required | integer <int32> [ 1 .. 2147483647 ] ID кода |
| level_id required | integer <int32> [ 1 .. 2147483647 ] ID уровня |
{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}Обновление координат на карте схемы
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| type required | string Enum: "level" "transition" "start" "finish" "enrollment" "unenrollment" "script" |
| id | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
required | object or null (ChartOffset) |
{- "type": "level",
- "id": 2147483647,
- "offset": {
- "x": 0.1,
- "y": 0.1
}
}{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}SEARCHABLE
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "transitions": [
- {
- "id": 2147483647,
- "event": "Start",
- "condition": {
- "type": "And",
- "args": [
- null
]
}, - "action": { },
- "action_else": { },
- "chart": {
- "x": 0.1,
- "y": 0.1
}
}
], - "records": 2147483647
}Создание перехода
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| event required | string (GameEvent) Enum: "Start" "Finish" "LevelOpen" "LevelClose" "LevelCloseByTeam" "LevelVarChange" "EnvVarChange" "CodePass" "LevelTimeout" "InfoblockOpen" "InfoblockClose" "InfoblockCodePass" "InfoblockAnswerSet" "InfoblockPhotoUpload" "InfoblockSetFreeAnswer" "InfoblockAnswerApprove" "InfoblockFreeButtonPressed" "TeamEnrolled" "TeamUnenrolled" "TimerUp" "TimerPaused" Тип события |
required | GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) (GameCondition) |
required | null or GameActionLevelOpen (object) or GameActionInfoblockOpen (object) or GameActionInfoblockFreeButtonPressed (object) or GameActionLevelClose (object) or GameActionInfoblockClose (object) or GameActionInfoblockSetVisibility (object) or GameActionEnvVarChange (object) or GameActionLevelVarChange (object) or GameActionFinish (object) or GameActionRunScript (object) or GameActionRunTimer (object) or GameActionPauseTimer (object) or GenerateTeamCodes (object) or RemoveTeamCodes (object) or GameActionChainCancel (object) (GameAction) |
null or GameActionLevelOpen (object) or GameActionInfoblockOpen (object) or GameActionInfoblockFreeButtonPressed (object) or GameActionLevelClose (object) or GameActionInfoblockClose (object) or GameActionInfoblockSetVisibility (object) or GameActionEnvVarChange (object) or GameActionLevelVarChange (object) or GameActionFinish (object) or GameActionRunScript (object) or GameActionRunTimer (object) or GameActionPauseTimer (object) or GenerateTeamCodes (object) or RemoveTeamCodes (object) or GameActionChainCancel (object) (GameAction) | |
object or null (ChartOffset) |
{- "event": "Start",
- "condition": {
- "type": "And",
- "args": [
- null
]
}, - "action": { },
- "action_else": { },
- "chart": {
- "x": 0.1,
- "y": 0.1
}
}{- "id": 2147483647,
- "event": "Start",
- "condition": {
- "type": "And",
- "args": [
- null
]
}, - "action": { },
- "action_else": { },
- "chart": {
- "x": 0.1,
- "y": 0.1
}
}Переход по ID
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| transition_id required | integer <int32> [ 1 .. 2147483647 ] ID перехода |
{- "id": 2147483647,
- "event": "Start",
- "condition": {
- "type": "And",
- "args": [
- null
]
}, - "action": { },
- "action_else": { },
- "chart": {
- "x": 0.1,
- "y": 0.1
}
}Редактирование перехода
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| transition_id required | integer <int32> [ 1 .. 2147483647 ] ID перехода |
| event required | string (GameEvent) Enum: "Start" "Finish" "LevelOpen" "LevelClose" "LevelCloseByTeam" "LevelVarChange" "EnvVarChange" "CodePass" "LevelTimeout" "InfoblockOpen" "InfoblockClose" "InfoblockCodePass" "InfoblockAnswerSet" "InfoblockPhotoUpload" "InfoblockSetFreeAnswer" "InfoblockAnswerApprove" "InfoblockFreeButtonPressed" "TeamEnrolled" "TeamUnenrolled" "TimerUp" "TimerPaused" Тип события |
required | GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) or GameCondition (object) (GameCondition) |
required | null or GameActionLevelOpen (object) or GameActionInfoblockOpen (object) or GameActionInfoblockFreeButtonPressed (object) or GameActionLevelClose (object) or GameActionInfoblockClose (object) or GameActionInfoblockSetVisibility (object) or GameActionEnvVarChange (object) or GameActionLevelVarChange (object) or GameActionFinish (object) or GameActionRunScript (object) or GameActionRunTimer (object) or GameActionPauseTimer (object) or GenerateTeamCodes (object) or RemoveTeamCodes (object) or GameActionChainCancel (object) (GameAction) |
null or GameActionLevelOpen (object) or GameActionInfoblockOpen (object) or GameActionInfoblockFreeButtonPressed (object) or GameActionLevelClose (object) or GameActionInfoblockClose (object) or GameActionInfoblockSetVisibility (object) or GameActionEnvVarChange (object) or GameActionLevelVarChange (object) or GameActionFinish (object) or GameActionRunScript (object) or GameActionRunTimer (object) or GameActionPauseTimer (object) or GenerateTeamCodes (object) or RemoveTeamCodes (object) or GameActionChainCancel (object) (GameAction) | |
object or null (ChartOffset) |
{- "event": "Start",
- "condition": {
- "type": "And",
- "args": [
- null
]
}, - "action": { },
- "action_else": { },
- "chart": {
- "x": 0.1,
- "y": 0.1
}
}{- "id": 2147483647,
- "event": "Start",
- "condition": {
- "type": "And",
- "args": [
- null
]
}, - "action": { },
- "action_else": { },
- "chart": {
- "x": 0.1,
- "y": 0.1
}
}Удаление перехода
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| transition_id required | integer <int32> [ 1 .. 2147483647 ] ID перехода |
{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}SEARCHABLE
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "variables": [
- {
- "id": 2147483647,
- "name": "string",
- "scope": "TEAM",
- "type": "string",
- "initial": 0,
- "color_id": 2147483647,
- "title": "string",
- "details": "string"
}
], - "records": 2147483647
}Создание переменной
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| name required | string (GameVariableName) [ 1 .. 64 ] characters ^[-A-Za-z0-9_]+$ Название переменной |
| scope required | string (GameVariableScope) Enum: "TEAM" "GAME" Видимость переменной |
| type | string (GameVariableType) Enum: "string" "number" "scale" Тип переменной |
| initial | integer or number or string or boolean or null (GameVariableValue) Deprecated Начальное значение |
| color_id | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Deprecated Id |
| title | string or null [ 0 .. 32 ] characters [\p{Print}]* Deprecated |
| details | string or null [ 0 .. 512 ] characters [\p{Print}]* Deprecated |
{- "name": "string",
- "scope": "TEAM",
- "type": "string",
- "initial": 0,
- "color_id": 2147483647,
- "title": "string",
- "details": "string"
}{- "id": 2147483647,
- "name": "string",
- "scope": "TEAM",
- "type": "string",
- "initial": 0,
- "color_id": 2147483647,
- "title": "string",
- "details": "string"
}Переменная по ID
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| variable_id required | integer <int32> [ 1 .. 2147483647 ] ID переменной |
{- "id": 2147483647,
- "name": "string",
- "scope": "TEAM",
- "type": "string",
- "initial": 0,
- "color_id": 2147483647,
- "title": "string",
- "details": "string"
}Редактирование переменной
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| variable_id required | integer <int32> [ 1 .. 2147483647 ] ID переменной |
| name required | string (GameVariableName) [ 1 .. 64 ] characters ^[-A-Za-z0-9_]+$ Название переменной |
| scope required | string (GameVariableScope) Enum: "TEAM" "GAME" Видимость переменной |
| type | string (GameVariableType) Enum: "string" "number" "scale" Тип переменной |
| initial | integer or number or string or boolean or null (GameVariableValue) Deprecated Начальное значение |
| color_id | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Deprecated Id |
| title | string or null [ 0 .. 32 ] characters [\p{Print}]* Deprecated |
| details | string or null [ 0 .. 512 ] characters [\p{Print}]* Deprecated |
{- "name": "string",
- "scope": "TEAM",
- "type": "string",
- "initial": 0,
- "color_id": 2147483647,
- "title": "string",
- "details": "string"
}{- "id": 2147483647,
- "name": "string",
- "scope": "TEAM",
- "type": "string",
- "initial": 0,
- "color_id": 2147483647,
- "title": "string",
- "details": "string"
}Удаление переменной
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| variable_id required | integer <int32> [ 1 .. 2147483647 ] ID переменной |
{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}SEARCHABLE
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "timers": [
- {
- "id": 2147483647,
- "name": "string",
- "scope": "TEAM"
}
], - "records": 2147483647
}Создание таймера
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| name required | string (GameVariableName) [ 1 .. 64 ] characters ^[-A-Za-z0-9_]+$ Название таймера |
| scope required | string (GameVariableScope) Enum: "TEAM" "GAME" Видимость переменной |
{- "name": "string",
- "scope": "TEAM"
}{- "id": 2147483647,
- "name": "string",
- "scope": "TEAM"
}Таймер по ID
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| timer_id required | integer <int32> [ 1 .. 2147483647 ] ID таймера |
{- "id": 2147483647,
- "name": "string",
- "scope": "TEAM"
}Редактирование таймера
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| timer_id required | integer <int32> [ 1 .. 2147483647 ] ID таймера |
| name required | string (GameVariableName) [ 1 .. 64 ] characters ^[-A-Za-z0-9_]+$ Название таймера |
| scope required | string (GameVariableScope) Enum: "TEAM" "GAME" Видимость переменной |
{- "name": "string",
- "scope": "TEAM"
}{- "id": 2147483647,
- "name": "string",
- "scope": "TEAM"
}Удаление таймера
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| timer_id required | integer <int32> [ 1 .. 2147483647 ] ID таймера |
{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}SEARCHABLE
Поиск пользователей
| page | integer <int32> [ 1 .. 10000 ] Default: 1 Страница |
| records | integer <int32> [ 1 .. 1000 ] Default: 1000 Записей на странице |
{- "users": [
- {
- "id": 2147483647,
- "nickname": "crux",
- "balance": -1000000,
- "created": "2019-08-24T14:15:22Z",
- "roles": [
- "AUTHOR"
], - "refcode": "string",
- "activity": {
- "player": 1,
- "author": {
- "real": {
- "feedback": 5,
- "teams_count": 5,
- "games_written": 5
}, - "virtual": {
- "feedback": 5,
- "teams_count": 5,
- "games_written": 5
}
}
}, - "city": {
- "id": 2147483647,
- "name": "string",
- "region": "string",
- "name_local": "string"
}, - "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "referrer": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "phone": "79123456789",
- "active": true
}
], - "records": 2147483647
}Обновление пользователя. Обновляются только переданные поля.
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| roles | Array of strings (Role) [ 1 .. 4 ] items unique Items Enum: "AUTHOR" "PLAYER" "SUPPORT" "ADMIN" "KID" Уровни доступа |
| avatar | null or null |
| active | boolean Пользователь может авторизоваться. |
{- "roles": [
- "AUTHOR"
], - "avatar": null,
- "active": true
}{- "id": 2147483647,
- "phone": "79123456789",
- "nickname": "crux",
- "created": "2019-08-24T14:15:22Z",
- "roles": [
- "AUTHOR"
], - "balance": -1000000,
- "phone_code": 1000,
- "refcode": "string",
- "referrer": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "activity": {
- "player": 1,
- "author": {
- "real": {
- "feedback": 5,
- "teams_count": 5,
- "games_written": 5
}, - "virtual": {
- "feedback": 5,
- "teams_count": 5,
- "games_written": 5
}
}
}, - "city": {
- "id": 2147483647,
- "name": "string",
- "region": "string",
- "name_local": "string"
}, - "notify": false,
- "delete_me": "2019-08-24T14:15:22Z",
- "stat": {
- "played": 2147483647,
- "played_fun": 2147483647,
- "wins": 2147483647,
- "wins_fun": 2147483647,
- "awards": 2147483647,
- "ratings": 2147483647,
- "records": 2147483647,
- "authored": 2147483647
}, - "active": true,
- "vk_profile": {
- "userId": 2147483647,
- "firstName": "string",
- "lastName": "string",
- "balance": 1000000
}, - "has_password": false,
- "settings": {
- "ref_to_author": false
}, - "rdb_token": "string"
}Изменение статуса заявки на вывод.
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| status required | string or null (OrderWithdrawStatus) Enum: "NEW" "PAYED" "HOLDED" Статус заявки на вывод. |
{- "status": "NEW"
}{- "id": 2147483647,
- "user": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "amount": 1,
- "status": "NEW",
- "created": "2019-08-24T14:15:22Z"
}{- "orders": [
- {
- "id": 2147483647,
- "user": {
- "id": 2147483647,
- "nickname": "crux",
- "captain": true,
- "phone": "79123456789",
- "created": "2019-08-24T14:15:22Z",
- "is_online": true,
- "last_online_change": -2147483648
}, - "amount": 1,
- "status": "NEW",
- "created": "2019-08-24T14:15:22Z"
}
], - "records": 2147483647
}Создаёт запрос на вывод средств.
Параметры вывода.
| amount required | number <float> [ 1000 .. 1000000 ] Сумма вывода. |
| user_id required | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
{- "amount": 1000,
- "user_id": 2147483647
}{ }{- "account_balance": 0.1,
- "account_income": 0.1,
- "account_withdrawals": 0.1,
- "account_expected_income": 0.1,
- "incoming_payment_full": 0.1,
- "incoming_payment": 0.1,
- "refunded": 0.1,
- "aquirer_tax": 0.1,
- "qq_balance": 0.1,
- "qq_service_balance": 0.1,
- "qq_users_balance": 0.1,
- "qq_debt": 0.1,
- "qq_withdraw": 0.1,
- "qq_withdraw_waiting": 0.1,
- "qq_divergence": 0.1,
- "service_income_referral": 0.1,
- "service_income_game": 0.1,
- "service_income_game_ref_rest": 0.1,
- "service_income_game_author_rest": 0.1,
- "service_income_enrollment": 0.1,
- "service_income_withdraw": 0.1,
- "account_spendable": 0.1,
- "unclosed_games_fee": 0.1,
- "updated_at": "2019-08-24T14:15:22Z"
}Добавить хинт в справочник
| id | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| title required | string [ 1 .. 64 ] characters [\p{Print}]* Название. |
| icon required | string [ 1 .. 128 ] characters [a-z_]+ |
| description required | string [ 1 .. 1024 ] characters [\p{Print}]* Детальное описание для подробной подсказки. |
{- "id": 2147483647,
- "title": "string",
- "icon": "string",
- "description": "string"
}{ }Редактирование хинта
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| id | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
| title required | string [ 1 .. 64 ] characters [\p{Print}]* Название. |
| icon required | string [ 1 .. 128 ] characters [a-z_]+ |
| description required | string [ 1 .. 1024 ] characters [\p{Print}]* Детальное описание для подробной подсказки. |
{- "id": 2147483647,
- "title": "string",
- "icon": "string",
- "description": "string"
}{- "id": 2147483647,
- "title": "string",
- "icon": "string",
- "description": "string"
}{- "franchises": [
- {
- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}
], - "records": 2147483647
}Добавить внутреннюю франшизу
| alias required | string (GameVariableName) [ 1 .. 64 ] characters ^[-A-Za-z0-9_]+$ Название переменной |
| name required | string (Printable) [ 0 .. 128 ] characters [\p{Print}]* |
object |
{- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}{ }Франшиза по ID
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
{- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}Редактирование франшизы
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| alias required | string (GameVariableName) [ 1 .. 64 ] characters ^[-A-Za-z0-9_]+$ Название переменной |
| name required | string (Printable) [ 0 .. 128 ] characters [\p{Print}]* |
object |
{- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}{- "id": 2147483647,
- "alias": "string",
- "name": "string",
- "settings": {
- "regex": "string",
- "AutoPromocodes": {
- "generate": true
}
}
}{- "promocodes": [
- {
- "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "team": "string",
- "team_id": 2147483647,
- "user": "crux",
- "used": 1000000,
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise_id": 2147483647,
- "logic": "simple"
}
], - "records": 2147483647
}Добавить промокод
| logic | string Value: "simple" |
| code required | string or null (Promocode) [ 1 .. 64 ] characters [A-Za-zА-Яа-яЁё0-9-.]+ Промокод |
| link required | string Enum: "player" "team" "public" Тип привязки промокода к учётной записи.
|
| factor | number or null <float> [ 0 .. 1 ] Коэффициент скидки. |
| fixed | number or null <float> [ 0 .. 1000000 ] Фиксированная сумма. |
| limit_factor | number or null <float> [ 0 .. 1 ] Максимальный коэффициент скидки. |
| from_date | string or null <date> <= 10 characters Дата начала периода действия. |
| to_date | string or null <date> <= 10 characters Дата окончания периода действия. |
| count | integer or null <int32> [ 1 .. 1000000 ] Максимальное количество возможных применений. |
| team_id | integer or null <int32> (Id-nullable) [ 0 .. 2147483647 ] Id-nullable |
| public_use | integer or null <int32> [ 1 .. 1000000 ] Максимальное количество личных использований для публичных промокодов. |
| details | string or null [ 0 .. 256 ] characters [\p{Print}]* |
| franchise_id | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
{- "logic": "regex",
- "args": {
- "regex": "string"
}, - "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "team_id": 2147483647,
- "public_use": 1,
- "details": "string",
- "franchise_id": 2147483647
}{- "logic": "regex",
- "args": {
- "regex": "string"
}, - "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "team": "string",
- "team_id": 2147483647,
- "user": "crux",
- "used": 1000000,
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise_id": 2147483647
}Промокод по ID
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
{- "logic": "regex",
- "args": {
- "regex": "string"
}, - "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "team": "string",
- "team_id": 2147483647,
- "user": "crux",
- "used": 1000000,
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise_id": 2147483647
}Редактирование промокода
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| logic | string Value: "simple" |
| code required | string or null (Promocode) [ 1 .. 64 ] characters [A-Za-zА-Яа-яЁё0-9-.]+ Промокод |
| link required | string Enum: "player" "team" "public" Тип привязки промокода к учётной записи.
|
| factor | number or null <float> [ 0 .. 1 ] Коэффициент скидки. |
| fixed | number or null <float> [ 0 .. 1000000 ] Фиксированная сумма. |
| limit_factor | number or null <float> [ 0 .. 1 ] Максимальный коэффициент скидки. |
| from_date | string or null <date> <= 10 characters Дата начала периода действия. |
| to_date | string or null <date> <= 10 characters Дата окончания периода действия. |
| count | integer or null <int32> [ 1 .. 1000000 ] Максимальное количество возможных применений. |
| team_id | integer or null <int32> (Id-nullable) [ 0 .. 2147483647 ] Id-nullable |
| public_use | integer or null <int32> [ 1 .. 1000000 ] Максимальное количество личных использований для публичных промокодов. |
| details | string or null [ 0 .. 256 ] characters [\p{Print}]* |
| franchise_id | integer or null <int32> (Id-rw) [ 0 .. 2147483647 ] Id |
{- "logic": "regex",
- "args": {
- "regex": "string"
}, - "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "team_id": 2147483647,
- "public_use": 1,
- "details": "string",
- "franchise_id": 2147483647
}{- "logic": "regex",
- "args": {
- "regex": "string"
}, - "id": 2147483647,
- "code": "NEWBIE",
- "link": "player",
- "factor": 1,
- "fixed": 1000000,
- "limit_factor": 1,
- "from_date": "2019-08-24",
- "to_date": "2019-08-24",
- "count": 1,
- "team": "string",
- "team_id": 2147483647,
- "user": "crux",
- "used": 1000000,
- "public_use": 1,
- "public_used": 1000000,
- "expired": false,
- "details": "string",
- "franchise_id": 2147483647
}Удаление промокода. Удалять можно только неиспользованные промокоды.
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}Обновить данные
| type | string Enum: "promocode" "running_schema" "user" Тип оповещения. |
Array of objects or (Id (integer or null)) Параметры обновления |
{- "type": "promocode",
- "all": [
- {
- "user_id": 2147483647
}
]
}{- "errors": [
- {
- "message": "string",
- "path": "string"
}
], - "status": 100
}Добавить цвет
| name required | string [ 1 .. 64 ] characters [\p{Print}]* |
| dark required | string (VariableColorValue) = 8 characters ^[a-fA-F0-9]{8}$ |
| light required | string (VariableColorValue) = 8 characters ^[a-fA-F0-9]{8}$ |
{- "name": "string",
- "dark": "stringst",
- "light": "stringst"
}{- "id": 2147483647,
- "name": "string",
- "dark": "stringst",
- "light": "stringst"
}Редактирование цвета
| id required | integer <int32> [ 1 .. 2147483647 ] Id |
| name required | string [ 1 .. 64 ] characters [\p{Print}]* |
| dark required | string (VariableColorValue) = 8 characters ^[a-fA-F0-9]{8}$ |
| light required | string (VariableColorValue) = 8 characters ^[a-fA-F0-9]{8}$ |
{- "name": "string",
- "dark": "stringst",
- "light": "stringst"
}{- "id": 2147483647,
- "name": "string",
- "dark": "stringst",
- "light": "stringst"
}