---
schema_version: "1"
id: edb3d2a51fe70ae43d7f43f5331581811c9922cfb664d348b8013ca149d01db8
title: Archive 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-archive-master-version.md
canonical_url: https://developer.salesforce.com/docs/service/salesforce-knowledge-dev-guide/guide/knowledge-rest-archive-master-version.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1b1f1a5eeba24e7373d4c95277ac82c7fbd8fe0d66b097b927100a2590b6b445
products:
  - Salesforce Knowledge Developer Guide
  - Service Cloud Developer Content
---

# Archive the Primary Version of an Article

Archives the primary version of an article. The actions are defined by the field change you request on the resource. To archive the primary version, use `"publishStatus":"Archived"`. To schedule a date for archiving, use `"archiveScheduleDate" : <date>`.

## 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 archived. |
| archiveScheduleDate | Date to archive the article.                    |

## Input

Archive:

```nolang
{
    "publishStatus":"Archived"
    }
```

Schedule for archiving (using GMT date format):

```nolang
{
    "archiveScheduleDate" : "2012-04-19T07:00:00.000+0000"
    }
```

## Output

HTTP status code 204 is returned when an existing record is updated.
