# Discard a page draft

> Source: /api-reference/partner/explorer/pages/discard-draft
> Throws the draft away and reverts to the published revision.
> Full spec: https://docs.journey.com/openapi/partner.v1.json

## `POST /v1/partner/pages/{pageGroupId}/discard-draft`

```json
{
  "description": "Throws the draft away and reverts to the published revision.",
  "operationId": "pagesPartner_discardDraft",
  "parameters": [
    {
      "description": "External id of the page group.",
      "in": "path",
      "name": "pageGroupId",
      "required": true,
      "schema": {
        "type": "string"
      }
    },
    {
      "description": "Global (Journey staff) callers name the organization they act within.",
      "in": "query",
      "name": "organizationId",
      "required": false,
      "schema": {
        "maxLength": 100,
        "type": "string"
      }
    }
  ],
  "responses": {
    "201": {
      "description": "The page after the draft was discarded."
    },
    "400": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "Request validation failed. `errors` lists the offending fields."
    },
    "401": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "No usable credential. Send `Authorization: Bearer <jwt>` or `X-API-Key: jny_...`."
    },
    "403": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "The credential authenticated but lacks the scopes in `x-required-scopes`, or the resource belongs to another organization."
    },
    "404": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "No such resource, or it is outside the organization the credential resolves to."
    },
    "409": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "The request conflicts with the current state of the resource."
    }
  },
  "security": [
    {
      "partnerBearer": []
    },
    {
      "partnerApiKey": []
    }
  ],
  "summary": "Discard a page draft",
  "tags": [
    "partner/pages"
  ],
  "x-required-scopes": [
    [
      "partner:pages:manage"
    ]
  ]
}
```