---
title: restore_artifact_version
description: Puts an older version of an artifact back as its newest, its text and
  what it reads, keeping its title.
sidebar:
  order: 64
---

Puts an older version of an artifact back as its newest, its text and what it reads, keeping its title. Typed inside `bash`, where `help restore_artifact_version` prints the same.

```text
Usage: restore_artifact_version SLUG NUMBER

Puts an older version of an artifact back as its newest, its text
and what it reads, keeping its title. An agent's restore always
waits for the owner's approval (`pending`).

Options:
  --slug TEXT (required)
      The artifact's slug, from list_artifacts.
  --number N (required)
      The version's number, from get_artifact.
  --json OBJECT
      Every argument at once, as one JSON object; --json - reads it from stdin.
```
