Update source app
Update source app. Manage only sources owned by this token on the current tenant.
/api/appstore/manage/sources/:source_id/apps/:app_idПараметры запроса
Все параметры можно передавать через Query или Body
| Параметр | Тип | Обязательный | Описание |
|---|---|---|---|
source_id | string | Обязательный | Source ID owned by this user on the current site Пример: 12345678 |
app_id | integer | Обязательный | App ID within this source Пример: 1 |
name | string | Опционально | App name, up to 100 characters Пример: 演示应用 |
download_url | string | Опционально | HTTP(S) URL for downloading the app Пример: https://example.com/app.ipa |
version | string | Опционально | App version Пример: 1.0 |
type | string | Опционально | App type |
version_desc | string | Опционально | Release notes |
icon_url | string | Опционально | HTTP(S) URL of the app icon |
tint_color | string | Опционально | Theme color |
size | string | Опционально | File size |
is_lanzou | integer | Опционально | LanZou Cloud link: 0/1 |
is_locked | integer | Опционально | Requires a license key to unlock: 0/1 |
ios_version_limit | string | Опционально | iOS version restriction |
weigh | integer | Опционально | Sort weight |
status | integer | Опционально | Visibility: 0=hidden, 1=visible; publish drafts before editing |
Ответ
| Параметр | Тип | Обязательный | Описание |
|---|---|---|---|
code | integer | Обязательный | 1 indicates success; otherwise a token, validation or source error code Пример: 1 |
msg | string | Обязательный | Localized result message Пример: 获取成功 |
time | integer | Обязательный | Unix timestamp in seconds |
data | object | Обязательный | Allowlisted fields visible to the source owner |
Коды ошибок
101140001Язык ответа
Настройте язык ответа API с помощью заголовка X-Lang. Примеры кода ниже автоматически используют текущий язык сайта.
X-Lang: ruzh, en, zh-TW, vi, ar, es, ruТакже поддерживается Accept-Language; X-Lang имеет приоритет. Для неподдерживаемых языков применяется языковая настройка сайта.
Примеры кода
curl -X PATCH "https://testypro.iwai.cc,https://cer.xyul.cn,https://cer.iwai.cc/api/appstore/manage/sources/12345678/apps/1" \
-H "X-Lang: ru" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "演示应用",
"download_url": "https://example.com/app.ipa",
"version": "1.0",
"type": "example_type",
"version_desc": "example_version_desc",
"icon_url": "example_icon_url",
"tint_color": "example_tint_color",
"size": "example_size",
"is_lanzou": 1,
"is_locked": 1,
"ios_version_limit": "example_ios_version_limit",
"weigh": 1,
"status": 1
}'Примечания
- Use HTTPS. Administrator-only fields such as uid, tenant_id, is_official and expiry time are rejected.
- Responses omit owner identities, draft internals and secrets; creating sources/apps is subject to subscription, trial and quota limits.
Попробуйте в Консоли
Заполните параметры ниже и отправьте запрос для тестирования. Запросы отправляются только на API этого сайта; URL зафиксирован и не может быть изменен, а текущий файл cookie для входа включен.
https://testypro.iwai.cc/api/appstore/manage/sources/12345678/apps/1Заблокировано для этого сайтаSource ID owned by this user on the current site
App ID within this source
App name, up to 100 characters
HTTP(S) URL for downloading the app
App version
App type
Release notes
HTTP(S) URL of the app icon
Theme color
File size
LanZou Cloud link: 0/1
Requires a license key to unlock: 0/1
iOS version restriction
Sort weight
Visibility: 0=hidden, 1=visible; publish drafts before editing