Tauri Application Upgrade Strategy
Interface Description: Get the corresponding upgrade strategy based on the client's version number, compatible with the file upgrade interface return information provided by Tauri official. Tauri Dynamic Updates
📮 Request Information
Request Address
GET https://api.upgrade.toolsetlink.com/v1/tauri/upgrade?tauriKey=a0jtz0HUwL66r7gCGvbMKQ&versionName=1.0.0&appointVersionCode=0&devModelKey=&devKey=&target=linux&arch=x86_64
Request Headers
| Parameter Name | Required | Type | Example Value | Description |
|---|---|---|---|---|
| X-AccessKey | Yes | string | mui2W50H1j-OC4xD6PgQag | Access Key |
Request Parameter Description
| Parameter Name | Required | Type | Example Value | Description |
|---|---|---|---|---|
| tauriKey | Yes | string | a0jtz0HUwL66r7gCGvbMKQ | Tauri application unique identifier |
| versionName | Yes | string | 1.0.0 | Version name recorded in the system |
| appointVersionName | No | string | 1.0.1 | Expected upgrade version name, defaults to latest version if not provided or empty |
| appointVersionCode | No | int | 0 | Expected upgrade version number, defaults to latest version if not provided or set to 0 |
| devModelKey | No | string | stv1 | Device model unique identifier |
| devKey | No | string | LOYlLXNy7w | Device unique identifier (can use MAC address as unique identifier) |
| target | Yes | string | linux | Operating system: linux, darwin, windows |
| arch | Yes | string | x86_64 | Machine architecture: x86_64, i686, aarch64, armv7 |
📮 Response Information
Success Response Body
json
{
"version": "2.0.0",
"notes": "Upgrade prompt",
"pub_date": "2025-05-26T20:40:30+08:00",
"url": "https://upgradelink.oss-cn-beijing.aliyuncs.com/upgrade/2025-05-26/other/01970c9b-be88-70db-b4bd-92303c8d1fef.json?x-oss-credential=LTAI5tA5mxKLLfa6FxPoTkqE%2F20250527%2Fcn-beijing%2Foss%2Faliyun_v4_request&x-oss-date=20250527T135625Z&x-oss-expires=600&x-oss-signature=fc961fcd21ecd763946ec123be1ef0504713f2189036fe57b687ed2917b570e8&x-oss-signature-version=OSS4-HMAC-SHA256",
"signature": "",
"upgradeType": 1
}Response Body Parameter Description
Return content is consistent with the official Tauri dynamic update interface return content. Tauri Dynamic Updates
| Parameter Name | Type | Example Value | Description |
|---|---|---|---|
| version | string | Version | |
| notes | string | Update description | |
| pub_date | string | Version date | |
| url | string | Version file URL | |
| signature | string | Generated .sig file content | |
| upgradeType | int | Prompt upgrade type: 1: Prompt upgrade; 2: Silent upgrade; 3: Force upgrade |
Typical Error Response Body
json
{
"code": 404001,
"msg": "No available version found",
"docs": "The corresponding application version was not found. Please confirm if it has been correctly created in the system. Please refer to the documentation: http://upgrade.toolsetlink.com/upgrade/recommend/tauri/app-version.html",
"data": null
}📊 Status Codes
| HTTP Status Code | Code | Scenario Description | Solution |
|---|---|---|---|
| 200 | Request successful, obtained version upgrade strategy | ||
| 204 | Already at latest version | ||
| 400 | 400001 | Illegal request | |
| 400 | 400002 | Missing parameters | |
| 400 | 400003 | Invalid parameters | |
| 400 | 400004 | Invalid headers | |
| 400 | 400005 | Invalid body | |
| 401 | 401001 | Authentication failed | |
| 401 | 401002 | Signature verification failed | |
| 404 | 404001 | Resource not found | |
| 404 | 404002 | Query record not found | |
| 404 | 404003 | Processing method not found | |
| 404 | 404004 | Request not found | |
| 429 | 429001 | Application task strategy request rate limit | Current upgrade task configuration request rate limit has been reached, please try again later. |
| 500 | 500001 | Server internal error | Contact us Contact Us |
| 500 | 500002 | Server internal data validation failed | Contact us Contact Us |