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

# Preview copied-standard activation (legacy)

> Requires `detection_rule.read`. Results are scoped to the authenticated tenant. This reference is generated from source; consult the authenticated live schema for deployment-specific availability. Legacy full-policy preview for a non-empty disabled curated-copy draft. Returns the complete policy, current scope and assigned-client count, and whether workspace-wide acknowledgement is required. This compatibility route is bounded to 50 controls, 50 manual checks, 200 rule-scope rows and 240 KiB. Use the summary and pages routes for larger drafts. Current per-client overrides and client population are not frozen; this read does not enable or evaluate.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/standards/{standard_id}/activation-preview
openapi: 3.1.0
info:
  title: Alignr API
  version: 0.1.0
  description: >-
    Selected read operations. Generated from the Alignr application; no tenant
    data is included.
servers:
  - url: https://api.alignr.io
security: []
paths:
  /api/v1/standards/{standard_id}/activation-preview:
    get:
      tags:
        - Standards
      summary: Preview copied-standard activation (legacy)
      description: >-
        Requires `detection_rule.read`. Results are scoped to the authenticated
        tenant. This reference is generated from source; consult the
        authenticated live schema for deployment-specific availability. Legacy
        full-policy preview for a non-empty disabled curated-copy draft. Returns
        the complete policy, current scope and assigned-client count, and
        whether workspace-wide acknowledgement is required. This compatibility
        route is bounded to 50 controls, 50 manual checks, 200 rule-scope rows
        and 240 KiB. Use the summary and pages routes for larger drafts. Current
        per-client overrides and client population are not frozen; this read
        does not enable or evaluate.
      operationId: >-
        get_standard_activation_preview_api_v1_standards__standard_id__activation_preview_get
      parameters:
        - name: standard_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Standard Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardActivationPreviewRead'
        '409':
          description: >-
            The draft is not eligible for activation preview; review its current
            state.
        '413':
          description: >-
            Policy is larger than the legacy one-response preview bounds; use
            the summary and pages routes.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    StandardActivationPreviewRead:
      properties:
        standardId:
          type: string
          format: uuid
          title: Standardid
        name:
          type: string
          title: Name
        enabled:
          type: boolean
          const: false
          title: Enabled
        controlCount:
          type: integer
          title: Controlcount
        manualCheckCount:
          type: integer
          title: Manualcheckcount
        workspaceWide:
          type: boolean
          title: Workspacewide
        assignedClientCount:
          type: integer
          title: Assignedclientcount
        activationRevision:
          type: string
          title: Activationrevision
        revisionExpiresAt:
          type: string
          format: date-time
          title: Revisionexpiresat
        policy:
          $ref: '#/components/schemas/StandardActivationPolicyRead'
      type: object
      required:
        - standardId
        - name
        - enabled
        - controlCount
        - manualCheckCount
        - workspaceWide
        - assignedClientCount
        - activationRevision
        - revisionExpiresAt
        - policy
      title: StandardActivationPreviewRead
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    StandardActivationPolicyRead:
      properties:
        standard:
          $ref: '#/components/schemas/ActivationStandardPolicyRead'
        controls:
          items:
            $ref: '#/components/schemas/ActivationControlPolicyRead'
          type: array
          title: Controls
        manualChecks:
          items:
            $ref: '#/components/schemas/ActivationManualPolicyRead'
          type: array
          title: Manualchecks
      type: object
      required:
        - standard
        - controls
        - manualChecks
      title: StandardActivationPolicyRead
    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
    ActivationStandardPolicyRead:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        slug:
          type: string
          title: Slug
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        enabled:
          type: boolean
          title: Enabled
        scopeMode:
          type: string
          enum:
            - workspace
            - selected
          title: Scopemode
        assignedClientCount:
          type: integer
          title: Assignedclientcount
        assignmentFingerprint:
          type: string
          title: Assignmentfingerprint
        isSystem:
          type: boolean
          title: Issystem
        version:
          type: integer
          title: Version
        activationGeneration:
          type: integer
          title: Activationgeneration
      type: object
      required:
        - id
        - name
        - slug
        - description
        - enabled
        - scopeMode
        - assignedClientCount
        - assignmentFingerprint
        - isSystem
        - version
        - activationGeneration
      title: ActivationStandardPolicyRead
    ActivationControlPolicyRead:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        slug:
          type: string
          title: Slug
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        scope:
          type: string
          title: Scope
        scopeIds:
          items:
            type: string
            format: uuid
          type: array
          title: Scopeids
        category:
          type: string
          title: Category
        severity:
          type: string
          title: Severity
        autonomy:
          type: string
          title: Autonomy
        enabled:
          type: boolean
          title: Enabled
        definition:
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
          type: object
          title: Definition
        parameters:
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
          type: object
          title: Parameters
      type: object
      required:
        - id
        - name
        - slug
        - description
        - scope
        - scopeIds
        - category
        - severity
        - autonomy
        - enabled
        - definition
        - parameters
      title: ActivationControlPolicyRead
    ActivationManualPolicyRead:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        organizationId:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Organizationid
        name:
          type: string
          title: Name
        instructions:
          type: string
          title: Instructions
        category:
          type: string
          title: Category
        reviewIntervalDays:
          type: integer
          title: Reviewintervaldays
        enabled:
          type: boolean
          title: Enabled
        version:
          type: integer
          title: Version
        sourceMetadata:
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
          type: object
          title: Sourcemetadata
      type: object
      required:
        - id
        - organizationId
        - name
        - instructions
        - category
        - reviewIntervalDays
        - enabled
        - version
        - sourceMetadata
      title: ActivationManualPolicyRead
    JsonValue: {}
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: An Alignr API key.

````

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