Implementation:Elevenlabs Elevenlabs python ChapterSnapshotResponse: Difference between revisions
Auto-imported from implementations/Elevenlabs_Elevenlabs_python_ChapterSnapshotResponse.md |
Sync from local file |
||
| Line 75: | Line 75: | ||
== Related Pages == | == Related Pages == | ||
* [[Elevenlabs_Elevenlabs_python_ChapterSnapshotExtendedResponseModel]] | * [[Implementation:Elevenlabs_Elevenlabs_python_ChapterSnapshotExtendedResponseModel]] | ||
* [[Elevenlabs_Elevenlabs_python_ChapterResponse]] | * [[Implementation:Elevenlabs_Elevenlabs_python_ChapterResponse]] | ||
[[Category:Implementations]] | [[Category:Implementations]] | ||
Latest revision as of 10:37, 27 September 2026
| Metadata | Value |
|---|---|
| source | Elevenlabs_Elevenlabs_python |
| domain | Projects, Audio Books, Snapshots |
| last_updated | 2026-02-15 |
Overview
Description: ChapterSnapshotResponse is a Pydantic model representing a snapshot of a chapter within an ElevenLabs project. A snapshot captures the state of a chapter's audio conversion at a specific point in time, identified by a unique snapshot ID. It includes references back to the parent project and chapter, along with creation timestamp and a human-readable name.
Usage: This model is returned by the ElevenLabs Projects API when listing or retrieving chapter snapshots. Snapshots allow users to maintain a version history of their chapter conversions, enabling rollback to previous versions and comparison between different conversion runs.
Code Reference
Source file: src/elevenlabs/types/chapter_snapshot_response.py
Class signature:
class ChapterSnapshotResponse(UncheckedBaseModel):
...
Import statement:
from elevenlabs.types import ChapterSnapshotResponse
I/O Contract
| Field | Type | Required | Description |
|---|---|---|---|
| chapter_snapshot_id | str | Yes | The ID of the chapter snapshot |
| project_id | str | Yes | The ID of the project |
| chapter_id | str | Yes | The ID of the chapter |
| created_at_unix | int | Yes | The creation date of the chapter snapshot (Unix timestamp) |
| name | str | Yes | The name of the chapter snapshot |
Usage Examples
from elevenlabs.types import ChapterSnapshotResponse
# Working with a chapter snapshot from the API
snapshot = ChapterSnapshotResponse(
chapter_snapshot_id="snap_abc123",
project_id="proj_xyz789",
chapter_id="ch_def456",
created_at_unix=1700000000,
name="Initial conversion",
)
# Access snapshot properties
print(f"Snapshot ID: {snapshot.chapter_snapshot_id}")
print(f"Project: {snapshot.project_id}")
print(f"Chapter: {snapshot.chapter_id}")
print(f"Name: {snapshot.name}")
print(f"Created at: {snapshot.created_at_unix}")