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

# Edit Group Rule



## OpenAPI

````yaml put /v3/groups/definitions/{group}/rules/{rule}
openapi: 3.1.0
info:
  title: Omneo
  version: 0.0.1
servers:
  - url: https://api.{tenant}.getomneo.com/api
    variables:
      tenant:
        default: example
security: []
paths:
  /v3/groups/definitions/{group}/rules/{rule}:
    put:
      tags:
        - Group Rule
      summary: Edit Group Rule
      operationId: groups.definitions.rules.update
      parameters:
        - name: group
          in: path
          required: true
          description: The group ID
          schema:
            type: integer
        - name: rule
          in: path
          required: true
          description: The rule ID
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateGroupRule'
      responses:
        '200':
          description: '`GroupRule`'
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/GroupRule'
                required:
                  - data
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '403':
          $ref: '#/components/responses/AuthorizationException'
        '404':
          $ref: '#/components/responses/ModelNotFoundException'
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    UpdateGroupRule:
      type: object
      properties:
        type:
          type: string
          enum:
            - inclusion
            - exclusion
        name:
          type:
            - string
            - 'null'
          maxLength: 255
        group_rule_definition_id:
          type: integer
        arguments:
          type:
            - array
            - 'null'
          items:
            type: string
        sort_order:
          type: integer
          minimum: 0
        is_active:
          type: boolean
        meta:
          type:
            - array
            - 'null'
          items:
            type: string
        evaluator:
          type: string
          description: |-
            Every rule is definition-backed. Rule logic lives on the reusable
            definition — change it via /groups/rule-definitions or re-point
            group_rule_definition_id; inline evaluator/rule no longer exist.
        rule:
          type: string
        rule_definition:
          type: string
      title: UpdateGroupRule
    GroupRule:
      type: object
      properties:
        id:
          type: integer
        group_definition_id:
          type: integer
        group_rule_definition_id:
          type:
            - integer
            - 'null'
        type:
          type: string
        name:
          type:
            - string
            - 'null'
        arguments:
          type:
            - array
            - 'null'
          items: {}
        sort_order:
          type: integer
        is_active:
          type: boolean
        meta:
          type:
            - array
            - 'null'
          items: {}
        effective:
          type: object
          description: |-
            Resolved values actually used for evaluation — evaluator/rule come
            from the referenced definition; arguments are definition defaults
            merged with this instance's overrides.
          properties:
            handle:
              type: string
            evaluator:
              type:
                - string
                - 'null'
            rule:
              type:
                - object
                - 'null'
              additionalProperties: {}
            name:
              type:
                - string
                - 'null'
            arguments:
              type: array
              items: {}
          required:
            - handle
            - evaluator
            - rule
            - name
            - arguments
        created_at:
          type: string
        updated_at:
          type: string
      required:
        - id
        - group_definition_id
        - group_rule_definition_id
        - type
        - name
        - arguments
        - sort_order
        - is_active
        - meta
        - effective
        - created_at
        - updated_at
      title: GroupRule
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    AuthorizationException:
      description: Authorization error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ModelNotFoundException:
      description: Not found
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors

````