Adds new config
POSThttps://apis.<domain>/iot/edge/configs
Authorization: http
name: bearerTokentype: httpscheme: bearerin: headerdescription: Authorization Header: `Authorization: Bearer <user_token>`
Adds new config to the list of config owned by user identified using the provided access token.
Authorization Action:
core:config:create
Request
- application/json
Body
required
JSON-formatted document describing the new config.
init_id stringrequired
init ID (MAC address or some unique identifier).
init_key stringrequired
init key.
thing_id string
ID of the corresponding Connhex Thing.
channels string[]
content string
Responses
- 201
- 400
- 401
- 415
- 500
Config created.
Response Headers
Bad request.
Unauthorized.
Missing or unsupported content type.
Unexpected server error.
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://apis.<domain>/iot/edge/configs' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"init_id": "string",
"init_key": "string",
"thing_id": "string",
"channels": [
"string"
],
"content": "string"
}'