Update a group

Applies partial changes to a group. The groupId never changes.

Send an RFC 6902 JSON Patch document: an array of operations applied in order. The request is all or nothing, so if one operation fails, none are applied.

Supported operations:

  • replace on /name renames the group.
  • add on /externalIds/- sets the external ID, whether or not the group already has one.
  • replace or remove on /externalIds/0 changes or clears an existing external ID, otherwise 422.

System groups are protected: Entire Fleet cannot be renamed, and [Ungrouped] is read-only.

An unsupported op or path returns 400, and an external ID already used by another group returns 422. Errors point to the failing operation by index, so /1/op is the op of the second operation.

Send the ETag from an earlier response in If-Match to apply the changes only if the group has not changed since; otherwise the request fails with 412 and nothing is updated. Each successful update returns a new ETag.

Retrying with the same Idempotency-Key and body returns the original outcome without repeating the update.

patch
https://api.us.vzconnect.com/v1/groups/{group-id}

Path Parameters

group-idstringrequired

Unique group identifier. Accepts either a server-owned groupId or a customer-owned externalId in scope:value format.

Match pattern:^([0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|(?=.{3,45}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+)$

>= 3 characters<= 45 characters

Headers

If-Matchstringrequired

The ETag value from an earlier response for this group. The update is applied only if the group has not changed since then. Otherwise the request fails with 412. Send one value only.

Match pattern:^"[a-z0-9-]+"$

>= 3 characters<= 120 characters

Idempotency-Keystringrequired

Unique client-generated key used to prevent duplicate processing of a request during network retries. Value must be enclosed in double quotes (e.g., “7b9b5f3a-2a1e-4c8d”).

Match pattern:^"[a-z0-9-]+"$

>= 3 characters<= 120 characters

traceparentstring

Standard W3C Trace Context header used to propagate distributed tracing identifiers across microservices.

Match pattern:^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$

>= 55 characters<= 55 characters

tracestatestring

Standard W3C Trace Context header containing vendor-specific routing and tracing key-value pairs.

Match pattern:^[^\n]{1,512}$

>= 1 characters<= 512 characters

Body

application/json

A JSON Patch document as defined by RFC 6902

A single operation within a JSON Patch document.

>= 1 items<= 2 items

* Additional properties are NOT allowed.
opstringrequired

The operation to perform. The group resource supports add, replace and remove.

Match pattern:^(add|replace|remove)$

>= 3 characters<= 7 characters

pathstringrequired

An RFC 6901 JSON Pointer to the location being changed. The group resource supports /name, /externalIds/- and /externalIds/0.

Match pattern:^/(name|externalIds/(-|0))$

>= 5 characters<= 14 characters

valuestring

The new value. Required for add and replace, and omitted for remove. A group name for /name, or a scope:value external ID for /externalIds.

Match pattern:^([\w \-.&()]{1,32}|[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+)$

>= 1 characters<= 45 characters

Response

No Content

 

Delete a group by ID

Deletes an existing group using either a server-generated groupId or a customer-managed externalId (formatted as scope:value).

Note: This operation is idempotent. Subsequent deletion requests for an already-deleted group will return a 204 No Content status.

This operation will fail if the group still contains child groups or attached entities. To delete a group that is not empty, use POST /v1/groups/{group-id}/delete.

delete
https://api.us.vzconnect.com/v1/groups/{group-id}

Path Parameters

group-idstringrequired

Unique group identifier. Accepts either a server-owned groupId or a customer-owned externalId in scope:value format.

Match pattern:^([0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|(?=.{3,45}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+)$

>= 3 characters<= 45 characters

Headers

traceparentstring

Standard W3C Trace Context header used to propagate distributed tracing identifiers across microservices.

Match pattern:^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$

>= 55 characters<= 55 characters

tracestatestring

Standard W3C Trace Context header containing vendor-specific routing and tracing key-value pairs.

Match pattern:^[^\n]{1,512}$

>= 1 characters<= 512 characters

Response

No Content

 

Delete a group that is not empty

Deletes a group even when it still has child groups or attached entities (such as users or vehicles). The attached entities are not deleted; they are detached from this group.

Supports idempotent requests via the Idempotency-Key request header. A retry with the same key returns the original result without repeating the operation.

post
https://api.us.vzconnect.com/v1/groups/{group-id}/delete

Path Parameters

group-idstringrequired

Unique group identifier. Accepts either a server-owned groupId or a customer-owned externalId in scope:value format.

Match pattern:^([0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|(?=.{3,45}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+)$

>= 3 characters<= 45 characters

Headers

Idempotency-Keystringrequired

Unique client-generated key used to prevent duplicate processing of a request during network retries. Value must be enclosed in double quotes (e.g., “7b9b5f3a-2a1e-4c8d”).

Match pattern:^"[a-z0-9-]+"$

>= 3 characters<= 120 characters

traceparentstring

Standard W3C Trace Context header used to propagate distributed tracing identifiers across microservices.

Match pattern:^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$

>= 55 characters<= 55 characters

tracestatestring

Standard W3C Trace Context header containing vendor-specific routing and tracing key-value pairs.

Match pattern:^[^\n]{1,512}$

>= 1 characters<= 512 characters

Body

application/json

ForceDeleteGroupRequest

ForceDeleteGroupRequestobject

Request payload for deleting a group that is not empty. Currently no fields are defined; send an empty object.

* Additional properties are NOT allowed.

Response

No Content

 

ForceDeleteGroupRequest

object

Request payload for deleting a group that is not empty. Currently no fields are defined; send an empty object.

* Additional properties are NOT allowed.

GroupCreateRequest

object

Payload to create a new group

* Additional properties are NOT allowed.
namestringrequired

Name of the group

Match pattern:^[\w\s\-\.&()]{1,32}$

>= 1 characters<= 32 characters

parentGroupOne Of
objectrequired

Reference to the primary (parent) group. Provide either groupId or externalId.

Variant 1object
* Additional properties are NOT allowed.
Show Child Parameters
externalIdsarray[string]

Optional customer-owned external identifiers for the group in scope:value format.

Match pattern:^(?=.{3,45}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$

>= 3 characters<= 45 characters>= 0 items<= 1 items

Example