Provision a new thing
POSThttps://apis.<domain>/iot/provision/things
Authorization: http
name: bearerAuthtype: httpscheme: bearerdescription: * Users access: "Authorization: Bearer <user_token>"
Provision a new things
Authorization Action:
core:provision:things
Request
- application/json
Body
required
Provision thing request body
name string
tenant stringrequired
model stringrequired
init_id stringrequired
External identifier (MAC address or similar)
init_key stringrequired
External key
migration_key string
migration_key_quota int32
Responses
- 201
- 400
- 401
- 500
Provisioning response data.
- application/json
- Schema
- Example (from schema)
Schema
things object[]
channels object[]
client_cert object
client_key object
ca_cert string
ca_chain string
whitelisted object
error string
{
"things": [
{
"id": "string",
"name": "string",
"key": "string",
"metadata": {},
"tenant": "string",
"model": "string"
}
],
"channels": [
{
"id": "string",
"name": "string",
"metadata": {},
"tenant": "string"
}
],
"client_cert": {},
"client_key": {},
"ca_cert": "string",
"ca_chain": "string",
"whitelisted": {},
"error": "string"
}
Failed due to malformed JSON.
Missing or invalid access token provided.
Unexpected server-side error occurred.
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://apis.<domain>/iot/provision/things' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"tenant": "string",
"model": "string",
"init_id": "string",
"init_key": "string",
"migration_key": "string",
"migration_key_quota": 0
}'