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

A JSON Patch document as defined by RFC 6902

array

An ordered list of operations to apply to the group. Operations are applied in the order listed. If any operation fails, none are applied.

>= 1 items<= 2 items

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

A JSON Patch operation as defined by RFC 6902

object

A single operation within a JSON Patch document.

* 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

Example