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

# Publish the compliance remediation policy

> Publish the compliance remediation policy: copy the current draft to the published text, which turns auto-remediation on — Primo AI is then assigned to the compliance tickets it opens and follows this policy. Review the exact draft with getComplianceRemediationPolicy before publishing. Fails if no policy exists yet.

Key: WriteScope: Company


## OpenAPI

````yaml https://api.getprimo.com/openapi.json post /compliance/remediation-policy/publish
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/publish:
    post:
      tags:
        - Compliance
      summary: Publish the compliance remediation policy
      description: >-
        Publish the compliance remediation policy: copy the current draft to the
        published text, which turns auto-remediation on — Primo AI is then
        assigned to the compliance tickets it opens and follows this policy.
        Review the exact draft with getComplianceRemediationPolicy before
        publishing. Fails if no policy exists yet.
      operationId: publishComplianceRemediationPolicy
      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.