Skip to main content

Provision a connectable

POST 

https://apis.<domain>/iot/provision/mapping

Authorization: http

name: bearerTokentype: httpscheme: bearerin: headerdescription: Authorization Header: `Authorization: Bearer <user_token>`

Provision a connectable.

Authorization Action:

core:provision:mapping

Request

Body

    init_id stringrequired

    MAC address or other identifier.

    init_key stringrequired

    Unique identifier.

    name string
    migration_key string
    migration_key_quota string

Responses

Created.

Schema
    things object[]
  • Array [
  • id uuid
    key uuid
    name string
    metadata object
  • ]
  • channels object[]
  • Array [
  • id uuid
    name string
    metadata object
  • ]
  • whitelisted object

    Whitelisted is a map of thing id to boolean. If the boolean is true, the thing has been connected to its channels and is whitelisted to exchange message to the cloud.

curl -L -X POST 'https://apis.<domain>/iot/provision/mapping' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"init_id": "string",
"init_key": "string",
"name": "string",
"migration_key": "string",
"migration_key_quota": "string"
}'
Request Collapse all
Base URL
https://apis.<domain>
Auth
Body
{
"init_id": "string",
"init_key": "string",
"name": "string",
"migration_key": "string",
"migration_key_quota": "string"
}