Delete Device Group

Delete a Device Group:
DELETE /groups/{accountname}/name/{gname}

Deletes a device group from the account. Devices in the group are moved to the default device group and are not deleted from the account.

Contents

See also:
Get a List of Device Groups
Get Information about a Device Group
Update a Device Group
Create a Device Group

Request Components

HTTP Request

DELETE https://thingspace.verizon.com/api/m2m/v1/groups/{accountname}/name/{gname}

Resource and Query Parameters

You must specify the account name and group name in the resource path.

Parameter Name Data Type Description
accountname
required
string The name of the account that contains the device group that you want to delete. An account name is usually numeric, and must include any leading zeros.
gname
required
string The name of the device group that you want to delete.

Header Parameters

The request header must contain a current ThingSpace authorization bearer token and a valid VZ-M2M session token, and must set the content-type to JSON.

Parameter Name Data Type Description
Authorization
required
string HTTP Authorization bearer token.
VZ-M2M-Token
required
string A valid session token returned by POST /session/login.
Content-Type
required
string Must be application/json.

Request Body

None.

Success Responses

Status 200

Parameter Name Data Type Description
success Boolean A value of “true” indicates that the device group was deleted successfully.

Example Success Response

{
  "success": true
}

Failure Responses

Status 400

All error messages are returned in this format:

{
  "errorCode": "error code string",
  "errorMessage": "error message string"
}

Error codes and messages are listed on the Error Messages page, along with explanations and suggestions for corrective actions.

Try It Out!