In this article
Unlink Device from Group
Unlink Device from Group
You MUST be a Device Owner (linked to a device) in order to unlink a device from a group.
URL
https://{{HOST}}/security/group?groupId={groupId}&deviceId={deviceId}&v={version}
Method
DELETE
Required IMS Scopes
- securityapi_all
Versions Supported
- 2.0 (Default)
URL Query Parameters
| Name | Description | Example | Type |
|---|---|---|---|
| v optional |
Version of the api to use | /group?v=2.0 | number |
| groupId required |
The ID of the group. | /group?groupId=testGroup | string |
| deviceId required |
The ID of the device. | /group?deviceId=testDevice | string |
Request Header Parameters
| Type | Value | Description |
|---|---|---|
| Authorization required |
Bearer {access_token} | IMS access token |
Example
Request
curl -X DELETE
'https://{{HOST}}/security/group/device?groupId=testGroup&deviceId=testDevice&v=2.0'
-H 'Authorization: Bearer {access_token}'
Response
{
"success": true
}
Errors
| Error | Description |
|---|---|
| Error Name | Description of Error |
Response Body Parameters
| Name | Description | Schema |
|---|---|---|
| Object Name | Description | object definition |
| success | Description | object definition |