Bulk provision things
POSThttps://apis.<domain>/iot/provision/things/bulk
Authorization: http
name: bearerAuthtype: httpscheme: bearerdescription: * Users access: "Authorization: Bearer <user_token>"
Provisions multiple things in a single request.
Authorization Action:
core:provision:things
Request
- application/json
Body
arrayrequired
- Array [
- ]
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
- 200
- 400
- 401
- 500
Bulk provision response.
- application/json
- Schema
- Example (from schema)
Schema
things object[]
processed integer
failed integer
errors string[]
{
"things": [
{
"id": "string",
"name": "string",
"key": "string",
"metadata": {},
"tenant": "string",
"model": "string"
}
],
"processed": 0,
"failed": 0,
"errors": [
"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/bulk' \
-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
}
]'