FLECS
HomeMarketplaceRessourcesGet started
Engineering
Engineering
  • API Docs
    • FLECS Console API
      • Welcome!
      • Quick Start
      • API Reference
        • Authentication
        • Users
        • Products
        • Device
        • Apps
    • FLECS Core API
      • API Reference
        • System
        • Device
        • Console
        • Instances
        • Apps
        • Jobs
  • App Publishing Guide
    • 💡Overview
    • 🪛How to create a FLECS app
    • 🚀How to release a FLECS app
    • 🧳App Publishing Packages
    • 📶Network
  • FLECS Core
    • Install FLECS Core Using Docker
  • White Labeling
    • Integrate views
    • On-premise hosting of apps
  • Service Mesh
    • Integrate flunder into your app
Powered by GitBook
On this page

Was this helpful?

  1. API Docs
  2. FLECS Console API
  3. API Reference

Device

PreviousProductsNextApps

Last updated 4 months ago

Was this helpful?

  • POSTActivate license
  • POSTValidate license

Validate license

post

Validate the device license based on the session id

Header parameters
X-Session-IdstringRequiredPattern: ^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$
Responses
200
Device successfully activated
application/json
500
Internal Server Error
application/json
post
POST /api/v2/device/license/validate HTTP/1.1
Host: console.flecs.tech
X-Session-Id: text
Accept: */*
{
  "data": {
    "isValid": true
  },
  "statusCode": 200,
  "statusText": "OK"
}

Activate license

post

Activate device via user license or device serial number

Header parameters
AuthorizationstringOptional

Provide only if activation via user license should be performed

Pattern: Bearer .+
X-Session-IdstringOptional

Leave out if no sessionId is known.

Pattern: ^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$
Body
licenseKeystringOptional
Responses
200
Device successfully activated
application/json
204
Device already active
403
Forbidden, e.g. no user license available
application/json
500
Internal Server Error
application/json
post
POST /api/v2/device/license/activate HTTP/1.1
Host: console.flecs.tech
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "licenseKey": "text"
}
{
  "data": {
    "sessionId": {
      "id": "text",
      "timestamp": 1
    },
    "licenseKey": "text"
  },
  "statusCode": 1,
  "statusText": "text"
}