thing.share.add

The thing.share.add command is used to share a thing between organizations.

TR50 Request


{
  "1": {
    "command": "thing.share.add",
    "params": {
      "id": "500000000000000000000001",
      "orgId": "500000000000000000000002",
      "permission": "rw"
    }
  }
}
      

Request Parameters

Name

Type

Required

Description

id

String

Yes

The ID of the thing to be shared.

orgId

String

Yes

The ID of the organization the thing is to be shared with.

permission

String

Yes

The permission granted to the org for the thing being shared. Valid values are "r" for read-only, and "rw" for reading & writing. Resharing is only allowed when the org is granted "rw" permission.

TR50 Response

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


{
  "1": {
    "success": true
  }
}