Return the deployed platform version.
GET
/version
const url = 'https://api.dev.iot-sens.schlossers.at/version';const options = {method: 'GET'};
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.dev.iot-sens.schlossers.at/versionReturns the immutable platform version configured for the running platform-api instance. Kubernetes deployments set this value from the rendered image tag so smoke checks can verify the deployed release.
Responses
Section titled “Responses”The deployed platform version.
Media typeapplication/json
object
version
required
Immutable deployed Platform SemVer. The release channel is tied to
the runtime environment: -local.0 locally, -alpha.RUN.ATTEMPT
in test, -rc.NUMBER in staging, and no pre-release in Production.
string
Example
{ "version": "0.1.2-local.0"}