Client API
Jan 1 2022 at 12:00 AM
Client API
Client API is responsible for maintaining a list of clients (aka tenants).
API calls within Client API
Client API
API Calls
Get
GET
Permission
ValidateId on clientId
Accessible
Core only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Client/Get
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Client/Get
URL Params
None
Data Params
{
"clientId": "string"
}
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None
Add
POST
Permission
entities.clients:add
Accessible
Core only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Client/Add
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Client/Add
URL Params
None
Data Params
{
"client": {
"clientId": "t000000000",
"name": "string",
"description": "string",
"active": false,
"documentVersion": 2,
"logoUrl": "string",
"autoAllocateGateways": false,
"autoAllocateGatewayToGroupId": "string"
}
}
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None
Update
POST
Permission
entities.clients:edit
Accessible
Core only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Client/Update
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Client/Update
URL Params
None
Data Params
{
"client": {
"clientId": "t000000000",
"name": "string",
"description": "string",
"active": false,
"documentVersion": 2,
"logoUrl": "string",
"autoAllocateGateways": false,
"autoAllocateGatewayToGroupId": "string"
}
}
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None
Remove
POST
Permission
entities.clients:delete
Accessible
Core only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Client/Remove
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Client/Remove
URL Params
None
Data Params
{
"clientId": "string"
}
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None
All
POST
Permission
None
Accessible
Core only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Client/All
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Client/All
URL Params
None
Data Params
None
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None
PublishAll
POST
Permission
None
Accessible
Core only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Client/PublishAll
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Client/PublishAll
URL Params
None
Data Params
None
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None
SubscribeToEvents
POST
Permission
None
Accessible
Core only Refer to the response and accessiblity information for more information.
URL
https://{tenantDomain}/{accountPath}/_apis/dapi/v1/Client/SubscribeToEvents
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/Client/SubscribeToEvents
URL Params
None
Data Params
None
Success Response
Refer to the response and accessiblity information for more information.
Error Response
Refer to the response and accessiblity information for more information.
Notes
None