Skip to content

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 NameRequiredTypeExample ValueDescription
X-AccessKeyYesstringmui2W50H1j-OC4xD6PgQagAccess Key

Request Parameter Description

Parameter NameRequiredTypeExample ValueDescription
tauriKeyYesstringa0jtz0HUwL66r7gCGvbMKQTauri application unique identifier
versionNameYesstring1.0.0Version name recorded in the system
appointVersionNameNostring1.0.1Expected upgrade version name, defaults to latest version if not provided or empty
appointVersionCodeNoint0Expected upgrade version number, defaults to latest version if not provided or set to 0
devModelKeyNostringstv1Device model unique identifier
devKeyNostringLOYlLXNy7wDevice unique identifier (can use MAC address as unique identifier)
targetYesstringlinuxOperating system: linux, darwin, windows
archYesstringx86_64Machine 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 NameTypeExample ValueDescription
versionstringVersion
notesstringUpdate description
pub_datestringVersion date
urlstringVersion file URL
signaturestringGenerated .sig file content
upgradeTypeintPrompt 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 CodeCodeScenario DescriptionSolution
200Request successful, obtained version upgrade strategy
204Already at latest version
400400001Illegal request
400400002Missing parameters
400400003Invalid parameters
400400004Invalid headers
400400005Invalid body
401401001Authentication failed
401401002Signature verification failed
404404001Resource not found
404404002Query record not found
404404003Processing method not found
404404004Request not found
429429001Application task strategy request rate limitCurrent upgrade task configuration request rate limit has been reached, please try again later.
500500001Server internal errorContact us Contact Us
500500002Server internal data validation failedContact us Contact Us

toolsetlink@163.com