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

# Opt a subject out of patterns

> Objection to profiling: the memory stops deriving patterns for this person.



## OpenAPI

````yaml openapi/en/cell.json POST /v1/profiles/{profile_id}/traits/opt-out
openapi: 3.1.0
info:
  title: Niadra data API
  version: '1'
  description: >-
    Writing, context, history, objects, identity, privacy and governance of one
    space. Every space has a stable address, with the space and the region in
    its name.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: The space, which comes in the source key.
      region:
        default: us-east-1
        description: The region of the space, which also comes in the key.
security: []
paths:
  /v1/profiles/{profile_id}/traits/opt-out:
    post:
      tags:
        - operate
      summary: Opt a subject out of patterns
      description: >-
        Records the objection of a data subject to profiling: the memory stops
        deriving patterns for this profile and removes the active ones. Facts,
        history and context keep working.


        **Authentication.** Console person token with the `security` role (or
        admin), or a source key with the `admin` scope.
      operationId: opt_out_of_traits_v1_profiles__profile_id__traits_opt_out_post
      parameters:
        - in: path
          name: profile_id
          required: true
          schema:
            format: uuid
            title: Profile Id
            type: string
          example: 0192f7a0-3b2e-7d41-8c5a-2e9f4b7a1c03
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OptOutResponse'
              example:
                profile_id: 0192f7a0-3b2e-7d41-8c5a-2e9f4b7a1c03
                opted_out_at: '2026-09-23T09:30:00Z'
          description: The opt-out is in force from `opted_out_at`.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - sourceKey: []
        - personToken: []
components:
  schemas:
    OptOutResponse:
      additionalProperties: false
      properties:
        opted_out_at:
          format: date-time
          title: Opted Out At
          type: string
        profile_id:
          title: Profile Id
          type: string
      required:
        - profile_id
        - opted_out_at
      title: OptOutResponse
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````