thing.share.status

The thing.share.status command is used to view the sharing status of a thing.

TR50 Request


{
  "1": {
    "command": "thing.share.status",
    "params": {
      "id": "500000000000000000000002"
    }
  }
}
      

Request Parameters

Name

Type

Required

Description

id

String

Yes

The ID of the thing that you are checking the share status of.

TR50 Response

If the command is sent successfully a success message is returned along with the share status. Otherwise, an error and error message will be returned.


                        {
  "1": {
    "success": true,
    "params": {
      "permission": "rw",
      "sharedTo": [
        {
          "orgId": "500000000000000000000003",
          "permission": "r"
        }
      ]
    }
  }
}
      

Response Parameters

Name

Type

Description

permission

String

The permission granted to your org for the thing. Valid values are "r" for read-only, and "rw" for read-write permission.

sharedTo

Array

An array specifying which orgs the selected thing is shared with and each orgs access.

SharedTo Array Object

Name

Type

Description

orgId

String

The ID of the org the thing is shared with.

permission

String

The permission granted to the org for the thing. Valid values are "r" for read-only, and "rw" for read-write permission.