# Add Policy Version

POST /{policyId}

#### Description

Creates a new version of an existing policy identified by its ID, capturing updated content, metadata, or compliance references.

Endpoint: POST /
Version: 1.0
Security: oauth2

## Query parameters:

  - `policyId` (string, required)
    Gets policy versions by this policy ID.

## Request fields (application/json):

  - `name` (string, required)
    Example: "Password Policy Version"

  - `revisionStatus` (string, required)
    Enum: "approval", "draft", "effective", "retired"

  - `nextRevisionDate` (string)
    Date by which the next revision of the policy version is needed. Persisted at noon UTC on the submitted value's UTC calendar day.
    Example: "2025-06-15T12:00:00Z"

  - `nextReviewDate` (string)
    Date set to start the next review cycle of the policy version. Persisted at noon UTC on the submitted value's UTC calendar day.
    Example: "2025-06-16T12:00:00Z"

  - `approvedDate` (string)
    Date when the policy version was approved. A submitted value is persisted at noon UTC on its UTC calendar day; when set by the server on approval, it is the time the approval was granted.
    Example: "2025-06-15T12:00:00Z"

  - `retiredDate` (string)
    Date when the policy version was retired. A submitted value is persisted at noon UTC on its UTC calendar day; when omitted and set by the server on a status change, it is the time of that change.
    Example: "2025-06-15T12:00:00Z"

  - `effectiveDate` (string)
    Date when the policy version becomes effective. A submitted value is persisted at noon UTC on its UTC calendar day; when omitted and set by the server on a status change, it is the time of that change.
    Example: "2025-06-12T12:00:00Z"

  - `publishedUrl` (string)
    Example: "www.google.com"

## Response 200 fields (application/json):

  - `id` (string)
    Example: "d88d505d-5199-11ee-a644-522476618ae8"

  - `orgId` (string)
    Example: "ce83e3cd-5199-11ee-a644-522476618ae8"

  - `policyId` (string)
    Example: "85604927-8912-4471-8db6-480571dc78ce "

  - `documentId` (string)
    Example: "cf0bedbe-6ecd-46b1-a84e-07018f61c2aa"

  - `name` (string)
    Example: "Password Policy Version"

  - `ownerId` (string)
    Example: "82d7c228-8bcd-11e9-a94b-ab3de8494987"

  - `revisionStatus` (string)
    Enum: same as `revisionStatus` (4 values)

  - `revisionStatusUpdatedBy` (string)
    Example: "82d7c228-8bcd-11e9-a94b-ab3de8494987"

  - `revisionStatusUpdatedOn` (string)
    Example: "2025-06-15T18:26:10.005365Z"

  - `nextRevisionDate` (string)
    Example: "2025-06-15T12:00:00Z"

  - `nextReviewDate` (string)
    Example: "2025-06-16T12:00:00Z"

  - `approvedDate` (string)
    Example: "2025-06-11T18:26:10.005365Z"

  - `retiredDate` (string)
    Example: "2025-06-15T12:00:00Z"

  - `effectiveDate` (string)
    Example: "2025-06-12T12:00:00Z"

  - `publishedUrl` (string)
    Example: "www.hyperproof.io"

  - `shareLink` (string)
    Example: "www.hyperproof.io"

  - `createdBy` (string)
    Example: "82d7c228-8bcd-11e9-a94b-ab3de8494987"

  - `createdOn` (string)
    Example: "2025-01-12T18:26:10.005365Z"

  - `updatedBy` (string)
    Example: "82d7c228-8bcd-11e9-a94b-ab3de8494987"

  - `updatedOn` (string)
    Example: "2025-01-12T18:26:10.005365Z"

  - `status` (string)
    The status of the object.
    Enum: "active", "archived", "pending", "canceled", "deleted", "closed"

  - `permissions` (array)
    Example: []


