# REST Resource: projects.locations.agents.playbooks.versions

- [Resource: PlaybookVersion](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.playbooks.versions#PlaybookVersion)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.playbooks.versions#PlaybookVersion.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.playbooks.versions#METHODS_SUMMARY)

## Resource: PlaybookVersion

Playbook version is a snapshot of the playbook at certain timestamp.

| JSON representation |
|---|
| ``` { "name": string, "description": string, "playbook": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.playbooks#Playbook`) }, "examples": [ { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.playbooks.examples#Example`) } ], "updateTime": string } ``` |

| Fields ||
|---|---|
| `name` | `string` The unique identifier of the playbook version. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`. |
| `description` | `string` Optional. The description of the playbook version. |
| `playbook` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.playbooks#Playbook`)`` Output only. Snapshot of the playbook when the playbook version is created. |
| `examples[]` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.playbooks.examples#Example`)`` Output only. Snapshot of the examples belonging to the playbook when the playbook version is created. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Last time the playbook version was created or modified. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.playbooks.versions/create` | Creates a version for the specified Playbook. |
| ### `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.playbooks.versions/delete` | Deletes the specified version of the Playbook. |
| ### `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.playbooks.versions/get` | Retrieves the specified version of the Playbook. |
| ### `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.playbooks.versions/list` | Lists versions for the specified Playbook. |
| ### `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.playbooks.versions/restore` | Retrieves the specified version of the Playbook and stores it as the current playbook draft, returning the playbook with resources updated. |