---
schema_version: "1"
id: 99eb048c6f863637a07448ab4b8cde75b0d4a7a6510a1af3f2e1e1c67a555e64
title: Unpublish the Primary Version of an Article
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/knowledge/guides/knowledge-rest-unpublish-master-version.md
canonical_url: https://developer.salesforce.com/docs/service/salesforce-knowledge-dev-guide/guide/knowledge-rest-unpublish-master-version.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: f883da8f8898c6d5d3ea70ec35a28d9692028b0901f9b0c107046cd2079701d6
products:
  - Salesforce Knowledge Developer Guide
  - Service Cloud Developer Content
---

# Unpublish the Primary Version of an Article

Unpublishes the online primary version of an article when there isn’t an existing draft article.

The publishing actions are defined by the field change you request on the resource. To unpublish the primary version, use `"publishStatus":"draft"`.

## URI

```nolang
/services/data/v25.0/knowledgeManagement/articleVersions/masterVersions/<versionId>
```

## Formats

JSON, XML

## HTTP Method

PATCH

## Authentication

`Authorization: OAuth {accesstoken}`

## Parameters

| Parameter     | Description                                  |
| ------------- | -------------------------------------------- |
| publishStatus | Publishing status of the article. Use draft. |

## Input

```nolang
{
    "publishStatus":"draft"
    }
```

## Output

HTTP status code 204 is returned when an existing record is updated.
