Version Check
const url = 'https://api.ultimateteam.ai/api/v1/mobile/version-check?platform=example¤t_version=example';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.ultimateteam.ai/api/v1/mobile/version-check?platform=example¤t_version=example' \ --header 'X-API-Key: <X-API-Key>'Check whether the mobile app needs an update.
Compares the client’s current version against the configured minimum version. Returns force_update=True when the client is below the minimum, signaling that the app must update before continuing.
This endpoint is unauthenticated – the app checks version before the user logs in.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”Mobile platform (ios or android)
Mobile platform (ios or android)
Current app version (semver)
Current app version (semver)
Responses
Section titled “ Responses ”Successful Response
Response body for mobile version check.
Attributes: min_version: Minimum supported app version. latest_version: Latest available app version. force_update: Whether the app must update before use. update_url_ios: App Store URL for iOS updates. update_url_android: Play Store URL for Android updates.
object
Examplegenerated
{ "force_update": true, "latest_version": "example", "min_version": "example", "update_url_android": "example", "update_url_ios": "example"}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}