Skip to content

CreateController

POST
/api/sites/{siteId}/controllers
curl --request POST \
--url https://demo.consystence.com/api/sites/example/controllers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "platform": 0, "firmwareVersion": "example", "connection": { "protocol": "example", "ipAddress": "example", "port": 1, "cipPath": "example", "pollIntervalMs": 1, "timeoutMs": 1, "retryDelayMs": 1, "maxRetries": 1 }, "assetNumber": "example" }'
siteId
required
string
Media typeapplication/json
object
name
required
string
0 <= 200 characters
platform
required
integer format: int32
Allowed values: 0 1 2 3 4 5 6
firmwareVersion
string
nullable 0 <= 50 characters
connection
required
object
protocol
required
string
>= 1 characters
ipAddress
required
string
>= 1 characters
port
integer format: int32
>= 1 <= 65535
cipPath
string
nullable
pollIntervalMs
integer format: int32
>= 100 <= 60000
timeoutMs
integer format: int32
>= 1000 <= 30000
retryDelayMs
integer format: int32
>= 1000 <= 60000
maxRetries
integer format: int32
>= 1 <= 10
assetNumber
required
string
>= 1 characters <= 50 characters

OK