---
title: "Update the default site revision"
method: PUT
path: "/publishing/v1/site-revisions/default"
tags: ["Publishing"]
---

# Update the default site revision

`PUT /publishing/v1/site-revisions/default`

Use the /site-revisions/default endpoint to update the values of properties 'autoPublishEnabled', 'name' and 'description' by replacing them with the ones in request body. Please note: Modifications to the 'autoPublishEnabled' flag are not picked up by WCH immediately but with a time lag of up to 30 seconds<br />User roles: admin, manager

## Request body

- object — Only properties autoPublishEnabled, name and description will be updated, others will be ignored
  - `name` object, required — an object holding the localized title for multiple languages
  - `description` object — an object holding the localized description for multiple languages
  - `links` object
    - `self` object — url pointing to this document
      - `href` string, required
      - `methods` string[], required
      - `name` object — single value object where key is the locale and value is the display name
  - `id` string, required — Unique identifier representing a specific item
  - `rev` string, required — a string identifying a specific version of the document
  - `created` string, date-time — date when this item was created
  - `creator` object — A reference to the User who has created the item
    - `id` string, required
  - `lastModified` string, date-time — date when this item was modifed for the last time
  - `lastModifier` object — A reference to the User who has modified the item
    - `id` string, required
  - `state` 'READY' | 'BUILDING' | 'PENDING' — State of the site revision
  - `autoPublishEnabled` boolean — If true, any updates affecting this site revision will be published automatically. Default is true.
  - `lastSucceeded` string, date-time — date when this site revision was last updated successfully (last time a job for that site revision completed successfully)
  - `active` boolean — indicates if this site revision is the active one.
  - `job` object — Reference to the job that modified this site revision most recently
    - `id` string, required

## Response `200`

Successfully updated the site revision.

- object
  - `links` object
    - `self` object, required — url pointing to this document
      - `href` string, required
      - `methods` string[], required
      - `name` object — single value object where key is the locale and value is the display name
  - `id` string, required — Unique identifier representing a specific item
  - `rev` string, required — a string identifying a specific version of the document
  - `created` string, date-time, required — date when this item was created
  - `creator` object, required — A reference to the User who has created the item
    - `id` string, required
  - `lastModified` string, date-time, required — date when this item was modifed for the last time
  - `lastModifier` object, required — A reference to the User who has modified the item
    - `id` string, required
  - `description` object — an object holding the localized description for multiple languages
  - `name` object, required — an object holding the localized title for multiple languages
  - `docs` object — Map which enumerates the events that shall be published grouped by their classification ('content', 'asset', etc.).
    - `content` object — Map which enumerates the items that shall be published groupd by their event type ('created', 'updated', etc.)
      - `created` string[] — List of items that have been created
      - `updated` string[] — List of items that have been updated
      - `deleted` string[] — List of items that have been deleted
    - `page` object — Map which enumerates the items that shall be published groupd by their event type ('created', 'updated', etc.)
      - `created` string[] — List of items that have been created
      - `updated` string[] — List of items that have been updated
      - `deleted` string[] — List of items that have been deleted
    - `site` object — Map which enumerates the items that shall be published groupd by their event type ('created', 'updated', etc.)
      - `created` string[] — List of items that have been created
      - `updated` string[] — List of items that have been updated
      - `deleted` string[] — List of items that have been deleted
    - `asset` object — Map which enumerates the items that shall be published groupd by their event type ('created', 'updated', etc.)
      - `created` string[] — List of items that have been created
      - `updated` string[] — List of items that have been updated
      - `deleted` string[] — List of items that have been deleted
    - `category` object — Map which enumerates the items that shall be published groupd by their event type ('created', 'updated', etc.)
      - `created` string[] — List of items that have been created
      - `updated` string[] — List of items that have been updated
      - `deleted` string[] — List of items that have been deleted
    - `resource` object — Map which enumerates the items that shall be published groupd by their event type ('created', 'updated', etc.)
      - `created` string[] — List of items that have been created
      - `updated` string[] — List of items that have been updated
      - `deleted` string[] — List of items that have been deleted

## Other responses

- `400` — Unable to handle the request as it does not match the API definition.
- `409` — Response indicating that the site revision cannot be activated
- `429` — Too Many Requests, the server has reached a limit, the request must be sent again at a later time.

---

[API](https://skmtc.net/goacoustic/apis/acoustic-content-api.md) · [All operations](https://skmtc.net/goacoustic/apis/acoustic-content-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/goacoustic/acoustic-content-api/revisions/677305266d89/schema)
