Skip to main content

Update Platform

Update an existing platform's name and updater configuration.

warning

Changing the platform name might prevent existing apps from checking for new versions, as the platform name will have changed.

Endpoint​

POST /platform/update

Authentication​

HeaderValue
AuthorizationBearer <jwt_token>

Request Body​

The request uses application/json format with the following fields:

FieldTypeRequiredDescription
idstring✅The ID of the platform you want to update
platformstring✅New platform name
updatersarray❌Array of updater configurations (see Updater Configuration below)

Updater Configuration​

Each updater in the array should have the following structure:

FieldTypeRequiredDescription
typestring✅Updater type: manual, velopack, sparkle, squirrel_darwin, squirrel_windows, electron-builder, tauri
defaultboolean❌Whether this updater is the default (only one can be default)

Supported Updater Types​

TypeDescription
manualStandard FaynoSync update flow
velopackVelopack cross-platform installer/updater
sparkleSparkle macOS update framework
squirrel_darwinSquirrel macOS update mechanism
squirrel_windowsSquirrel Windows update mechanism
electron-builderElectron Builder update mechanism
tauriTauri built-in updater

Example Requests​

Update Platform Name Only​

curl --location 'http://localhost:9000/platform/update' \
-H "Authorization: Bearer <jwt_token>" \
-H "Content-Type: application/json" \
--data '{
"id": "66ae13fe5b663c058367f893",
"platform": "new_name"
}'

Update Platform with Updaters Configuration​

curl --location 'http://localhost:9000/platform/update' \
-H "Authorization: Bearer <jwt_token>" \
-H "Content-Type: application/json" \
--data '{
"id": "66ae13fe5b663c058367f893",
"platform": "updated_platform",
"updaters": [
{"type": "manual", "default": true},
{"type": "squirrel_windows", "default": false},
{"type": "electron-builder"}
]
}'

Update Updaters Only (Keep Platform Name)​

curl --location 'http://localhost:9000/platform/update' \
-H "Authorization: Bearer <jwt_token>" \
-H "Content-Type: application/json" \
--data '{
"id": "66ae13fe5b663c058367f893",
"platform": "existing_name",
"updaters": [
{"type": "squirrel_darwin", "default": true},
{"type": "manual"}
]
}'

Response​

Success Response (200 OK)​

{
"updatePlatformResult.Updated": true
}

Response Fields​

FieldTypeDescription
updatePlatformResult.UpdatedbooleanIndicates whether the platform was successfully updated

Notes​

  • Platform Name Changes: Platform name changes should be done carefully as they may break existing client integrations
  • Updater Configuration: You can update updaters without changing the platform name
  • Default Updater: Only one updater can be set as default per platform
  • Impact: Changes affect all future uploads and searches using this platform
  • Backward Compatibility: Existing applications will continue to work with the default updater unless changed