---
title: "A JSON Patch operation as defined by RFC 6902"
url: "https://developers.vzconnect.com/apis/groups-hierarchy-api/versions/6301049c-0ba5-4584-a236-ea7417e150ff/schemas/GroupPatchOperation"
---

> Full API specification: https://developers.vzconnect.com/apis/groups-hierarchy-api/versions/6301049c-0ba5-4584-a236-ea7417e150ff.md

# A JSON Patch operation as defined by RFC 6902

A single operation within a JSON Patch document.

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Groups Management API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
components:
  schemas:
    GroupPatchOperation:
      title: A JSON Patch operation as defined by RFC 6902
      description: A single operation within a JSON Patch document.
      type: object
      additionalProperties: false
      required:
        - op
        - path
      properties:
        op:
          type: string
          description: The operation to perform. The group resource supports `add`,
            `replace` and `remove`.
          minLength: 3
          maxLength: 7
          pattern: ^(add|replace|remove)$
        path:
          type: string
          description: An RFC 6901 JSON Pointer to the location being changed. The group
            resource supports `/name`, `/externalIds/-` and `/externalIds/0`.
          minLength: 5
          maxLength: 14
          pattern: ^/(name|externalIds/(-|0))$
        value:
          type: string
          description: 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`.
          minLength: 1
          maxLength: 45
          pattern: ^([\w \-.&()]{1,32}|[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+)$
```
