> ## 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.

# Remove a profile from a static group

> A `POST` to `/groups/definitions/{group}/profiles/{profile}/remove` soft-removes the
active membership (sets removed_at + removed_reason + removed_by_profile_id). POST (not
DELETE) so the payload is explicit; body fields mirror the columns —
`removed_reason` (defaults to GroupMembership::REMOVED_REASON_MANUAL when omitted) and
`removed_by_profile_id`. Returns the removed membership (200), or 404 when the profile has
no active membership in the group (the removal target does not exist).



## OpenAPI

````yaml post /v3/groups/definitions/{group}/profiles/{profile}/remove
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}/profiles/{profile}/remove:
    post:
      tags:
        - Group Profile
      summary: Remove a profile from a static group
      description: >-
        A `POST` to `/groups/definitions/{group}/profiles/{profile}/remove`
        soft-removes the

        active membership (sets removed_at + removed_reason +
        removed_by_profile_id). POST (not

        DELETE) so the payload is explicit; body fields mirror the columns —

        `removed_reason` (defaults to GroupMembership::REMOVED_REASON_MANUAL
        when omitted) and

        `removed_by_profile_id`. Returns the removed membership (200), or 404
        when the profile has

        no active membership in the group (the removal target does not exist).
      operationId: groups.definitions.profiles.remove
      parameters:
        - name: group
          in: path
          required: true
          description: The group ID
          schema:
            type: integer
        - name: profile
          in: path
          required: true
          description: The profile ID
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoveGroupProfile'
      responses:
        '200':
          description: '`GroupProfile`'
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/GroupProfile'
                required:
                  - data
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '403':
          $ref: '#/components/responses/AuthorizationException'
        '404':
          $ref: '#/components/responses/ModelNotFoundException'
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    RemoveGroupProfile:
      type: object
      description: >-
        Static-group member removal payload. Field names mirror the
        group_profiles

        columns. `removed_reason` is optional and defaults to GroupMembership's

        manual-removal reason when omitted.
      properties:
        removed_reason:
          type:
            - string
            - 'null'
          maxLength: 255
        removed_by_profile_id:
          type:
            - string
            - 'null'
      title: RemoveGroupProfile
    GroupProfile:
      type: object
      properties:
        id:
          type: integer
        group_definition_id:
          type: integer
        profile_id:
          type: string
        added_at:
          type: string
        expires_at:
          type: string
        removed_at:
          type: string
        removed_reason:
          type:
            - string
            - 'null'
        added_by_profile_id:
          type:
            - string
            - 'null'
        removed_by_profile_id:
          type:
            - string
            - 'null'
        source_type:
          type:
            - string
            - 'null'
        source_id:
          type:
            - integer
            - 'null'
        meta:
          type:
            - array
            - 'null'
          items: {}
        created_at:
          type: string
        updated_at:
          type: string
      required:
        - id
        - group_definition_id
        - profile_id
        - added_at
        - expires_at
        - removed_at
        - removed_reason
        - added_by_profile_id
        - removed_by_profile_id
        - source_type
        - source_id
        - meta
        - created_at
        - updated_at
      title: GroupProfile
  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

````