# Start editing a page

> Source: /api-reference/partner/explorer/pages/start-editing
> Creates a draft from the published revision. Required before any draft content write.
> Full spec: https://docs.journey.com/openapi/partner.v1.json

## `POST /v1/partner/pages/{pageGroupId}/edit`

```json
{
  "description": "Creates a draft from the published revision. Required before any draft content write.",
  "operationId": "pagesPartner_startEditing",
  "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"
      }
    },
    {
      "description": "Which revision. Required when a page has both a draft and a published\nrevision; otherwise the only revision is used.",
      "in": "query",
      "name": "state",
      "required": false,
      "schema": {
        "enum": [
          "draft",
          "archived",
          "published"
        ],
        "type": "string"
      }
    }
  ],
  "responses": {
    "201": {
      "description": "The page with a draft revision."
    },
    "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": "Start editing a page",
  "tags": [
    "partner/pages"
  ],
  "x-required-scopes": [
    [
      "partner:pages:manage"
    ]
  ]
}
```