> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tracecat.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Patch Group

> Add or remove members, or rename the group.

The projection reconciles against a complete member list, so each operation
is folded into the current set and the result replaces it wholesale.



## OpenAPI

````yaml https://platform.tracecat.com/api/openapi.json patch /scim/v2/Groups/{group_id}
openapi: 3.1.0
info:
  title: Tracecat API
  summary: Tracecat API
  description: The open source AI automation platform for security teams and agents.
  termsOfService: >-
    https://docs.google.com/document/d/e/2PACX-1vQvDe3SoVAPoQc51MgfGCP71IqFYX_rMVEde8zC4qmBCec5f8PLKQRdxa6tsUABT8gWAR9J-EVs2CrQ/pub
  contact:
    name: Tracecat Founders
    email: founders@tracecat.com
  license:
    name: AGPL-3.0
    url: https://www.gnu.org/licenses/agpl-3.0.html
  version: '1'
servers:
  - url: /api
security: []
tags:
  - name: public
    description: Public facing endpoints
  - name: workflows
    description: Workflow management
  - name: actions
    description: Action management
  - name: triggers
    description: Workflow triggers
  - name: secrets
    description: Secret management
  - name: variables
    description: Workspace variable management
paths:
  /scim/v2/Groups/{group_id}:
    patch:
      tags:
        - scim
      summary: Patch Group
      description: >-
        Add or remove members, or rename the group.


        The projection reconciles against a complete member list, so each
        operation

        is folded into the current set and the result replaces it wholesale.
      operationId: scim-patch_group
      parameters:
        - name: group_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Group Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScimPatchOp'
      responses:
        '200':
          description: Successful Response
          content:
            application/scim+json:
              schema:
                $ref: '#/components/schemas/ScimGroupResource'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ScimConnectionBearer: []
components:
  schemas:
    ScimPatchOp:
      properties:
        schemas:
          items:
            type: string
          type: array
          title: Schemas
        Operations:
          items:
            $ref: '#/components/schemas/ScimPatchOperation'
          type: array
          minItems: 1
          title: Operations
      type: object
      required:
        - Operations
      title: ScimPatchOp
      description: A PATCH request body.
    ScimGroupResource:
      properties:
        schemas:
          items:
            type: string
          type: array
          title: Schemas
        id:
          type: string
          title: Id
        displayName:
          type: string
          title: Displayname
        externalId:
          anyOf:
            - type: string
            - type: 'null'
          title: Externalid
        members:
          items:
            $ref: '#/components/schemas/ScimGroupMemberRef'
          type: array
          title: Members
        meta:
          anyOf:
            - $ref: '#/components/schemas/ScimMeta'
            - type: 'null'
      type: object
      required:
        - id
        - displayName
      title: ScimGroupResource
      description: A Group resource as returned to the provider.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ScimPatchOperation:
      properties:
        op:
          type: string
          enum:
            - add
            - remove
            - replace
          title: Op
        path:
          anyOf:
            - type: string
            - type: 'null'
          title: Path
        value:
          title: Value
      type: object
      required:
        - op
      title: ScimPatchOperation
      description: |-
        One entry of a PatchOp ``Operations`` array.

        ``op`` is case-insensitive per RFC 7644; Azure sends ``Add`` where Okta
        sends ``add``.
    ScimGroupMemberRef:
      properties:
        value:
          type: string
          title: Value
        display:
          anyOf:
            - type: string
            - type: 'null'
          title: Display
      type: object
      required:
        - value
      title: ScimGroupMemberRef
      description: A member reference inside a Group resource.
    ScimMeta:
      properties:
        resourceType:
          type: string
          title: Resourcetype
        created:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created
        lastModified:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Lastmodified
        location:
          anyOf:
            - type: string
            - type: 'null'
          title: Location
      type: object
      required:
        - resourceType
      title: ScimMeta
      description: Resource metadata. Only the fields Okta reads are emitted.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ScimConnectionBearer:
      type: http
      description: Tracecat SCIM connection token.
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.