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

# Unpublish the compliance remediation policy

> Unpublish the compliance remediation policy, which turns auto-remediation off: Primo AI is no longer assigned to the compliance tickets opened from then on, and the tickets it already works keep it. The draft is kept, so publishComplianceRemediationPolicy turns it back on. Demo companies are not allowed to turn it off (403).

Key: WriteScope: Company


## OpenAPI

````yaml https://api.getprimo.com/openapi.json post /compliance/remediation-policy/unpublish
openapi: 3.1.1
info:
  title: Public API - BETA
  description: Read docs on https://docs.getprimo.com/
  version: '1.0'
  contact: {}
servers:
  - url: https://api.getprimo.com
security:
  - apikey: []
tags: []
paths:
  /compliance/remediation-policy/unpublish:
    post:
      tags:
        - Compliance
      summary: Unpublish the compliance remediation policy
      description: >-
        Unpublish the compliance remediation policy, which turns
        auto-remediation off: Primo AI is no longer assigned to the compliance
        tickets opened from then on, and the tickets it already works keep it.
        The draft is kept, so publishComplianceRemediationPolicy turns it back
        on. Demo companies are not allowed to turn it off (403).
      operationId: unpublishComplianceRemediationPolicy
      parameters: []
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RemediationPolicyResponse_Output'
components:
  schemas:
    RemediationPolicyResponse_Output:
      type: object
      properties:
        policy:
          description: >-
            The compliance remediation policy, or null when none was written yet
            (auto-remediation off).
          anyOf:
            - type: object
              properties:
                status:
                  description: >-
                    Publication state. "unpublished": never published —
                    auto-remediation is off. "pending-changes": the draft has
                    edits not yet published. "published": the draft matches the
                    published text.
                  type: string
                  enum:
                    - unpublished
                    - pending-changes
                    - published
                draft:
                  description: >-
                    The editable draft. This is the text
                    updateComplianceRemediationPolicy writes.
                  type: object
                  properties:
                    content:
                      description: The Markdown body of the compliance remediation policy.
                      type: string
                  required:
                    - content
                  additionalProperties: false
                published:
                  description: >-
                    The published text Primo AI follows when it works a
                    compliance ticket, or null if never published.
                  anyOf:
                    - type: object
                      properties:
                        content:
                          description: >-
                            The Markdown body of the compliance remediation
                            policy.
                          type: string
                      required:
                        - content
                      additionalProperties: false
                    - type: 'null'
              required:
                - status
                - draft
                - published
              additionalProperties: false
            - type: 'null'
      required:
        - policy
      additionalProperties: false
  securitySchemes:
    apikey:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: >-
        Use your Primo API key in the Authorization header as `Bearer
        <API_KEY>`.

````

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