Specialized APIsSensor InsightsAPI Reference

Partially update a notification group

PATCH /dm/v1/notificationGroups

Use this endpoint to update a notification group without the need to create a new record.

Header Parameters

The request header must set the content-type to JSON, contain a current ThingSpace authorization token and a current VZ-M2M session token. For more details on how to get these tokens, visit Getting Started.

Parameter NameData TypeDescription
Authorization (required)stringHTTP Authorization request header containing a valid Bearer token: Authorization: Bearer {token}
VZ-M2M-Token (required)stringA valid session token returned by a Connectivity Management POST /session/login request.
Content-Type (required)stringMust be application/json.

HTTP Request

PATCH https://thingspace.verizon.com/api/dm/v1/notificationGroups

Request Parameters

Note: All parameters are required unless marked (optional)

ParameterData TypeDescription
accountnamestringThe numeric name of the account and must include leading zeros.
groupobjectAn object containing the group details .
descriptionstringA description of the group.
groupemailstringThe email address used to reach all the members of the group, in the format "email@domain.com".
namestringThe user defined name of the group.
useridsarrayAn array of the user profile IDs to add to the group as members.

Request Body

Example Request:

{
  "accountname": "0000123456-00001",
  "group": {
    "description": "a short description",
    "groupemail": "email@domain.com",
    "name": "User defined name of the group"
  },
  "userids": [
    "ee70a869-eeee-ffff-gggg-07c14c31f96e",
    "131501ff-eeee-ffff-gggg-647d19179a12"
  ]
}

Success Response

Status 200 This is a synchronous response, so the updated group details and the user details will be returned. Example Response:

{
  "createdon": "2023-10-02T15:46:34.562Z",
  "description": "a short description",
  "foreignid": "c1f178d3-eeee-ffff-gggg-0d6b7ae6022a",
  "groupemail": "email@domain.com",
  "id": "the UUID of the resource",
  "lastupdated": "2023-10-02T15:46:34.562Z",
  "name": "name of the record",
  "users": [
    {
      "email": "email@domain.com",
      "firstname": "First name",
      "lastname": "Last name or Surname",
      "mdn": "908-555-1234",
      "customdata": {
        "additionalProp1": [
          100
        ],
        "additionalProp2": [
          100
        ],
        "additionalProp3": [
          100
        ]
      }
    }
  ],
  "version": "1.0",
  "versionid": "337bd2e8-eeee-ffff-gggg-5207992fd395"
}

Success Parameters

ParameterData TypeDescription
createdonstring ($date-time)The timestamp of when the record was created.
descriptionstringA decription of the record.
foreignidstringThe UUID value of the user's Enterprise Customer Profile Database (ECPD) account. A UUID is a 32 to 36-bit alphanumeric string.
groupemailstringThe email address used to reach all the members of the group.
idstringThe UUID of the resource record. A UUID is a 32 to 36-bit alphanumeric string.
lastupdatedstring ($date-time)The timestamp of when the last update to the record was made.
namestringThe user defined name of the group.
userobjectAn object containing the details of the user.
emailstringAn email address for the user, in the format "email@domain.com".
firstnamestringThe user's first name.
lastnamestringThe user's last name or Surname.
mdnstringThe Mobile Directory Number of the user. This is a 10-digit phone number.
customdataobjectThis is free form JSON, any thing in the form of JSON can be stored.
versionstringThe resource version.
versionidstringThe UUID of the resource version. A UUID is a 32 to 36-bit alphanumeric string.

Failure Responses

Example Response:

{
  "error": "Error name or code",
  "error_description": "A longer error description.",
  "cause": "A cause for the error"
}

On this page