Request Headers (Applies to all methods)
GET
/api/apps/{appID}/things/{thingID}/status
Get the current status of the thing.
The administrator, a thing owner, and thing itself can perform this operation.
Content-Type application/vnd.kii.ThingStatusRetrievalResponse+json
Name | Type | Description |
---|---|---|
disabled | boolean | True if thing is disabled, false if it's enabled. |
Content-Type application/vnd.kii.ThingNotFoundException+json
Name | Type | Description |
---|---|---|
errorCode | string | Error code "THING_NOT_FOUND". |
message | string | The error message. |
field | string | The field used for searching the thing. This can be the "thingID" or "vendorThingID" field. |
value | string | The field value used for searching the thing. |
appID | string | The ID of the application. |
Content-Type application/vnd.kii.UnauthorizedAccessException+json
Name | Type | Description |
---|---|---|
errorCode | string | Error code "UNAUTHORIZED". |
message | string | The error message. |
authenticatedAppID | string | The authenticated appID. |
authenticatedPrincipalID | string | The authenticated principal ID (userID or thingID). |
PUT
/api/apps/{appID}/things/{thingID}/status
Change the status of the thing.
The administrator and a thing owner can perform this operation.
Content-Type application/vnd.kii.ThingStatusUpdateRequest+json
The data for changing the status of the thing.
{
"disabled": "[boolean]"
}
Content-Type (None)
Content-Type application/vnd.kii.ThingNotFoundException+json
Name | Type | Description |
---|---|---|
errorCode | string | Error code "THING_NOT_FOUND". |
message | string | The error message. |
field | string | The field used for searching the thing. This can be the "thingID" or "vendorThingID" field. |
value | string | The field value used for searching the thing. |
appID | string | The ID of the application. |
Content-Type application/vnd.kii.ValidationException+json
Name | Type | Description |
---|---|---|
errorCode | string | Error code "INVALID_INPUT_DATA". |
message | string | The error message. |
Content-Type application/vnd.kii.UnauthorizedAccessException+json
Name | Type | Description |
---|---|---|
errorCode | string | Error code "UNAUTHORIZED". |
message | string | The error message. |
authenticatedAppID | string | The authenticated appID. |
authenticatedPrincipalID | string | The authenticated principal ID (userID or thingID). |