API reference · Account
Restore an earlier version
POST/api/studio/projects/{id}/versions/{vid}/restoreSigned in session
The old document becomes the film's next version; the one it replaces is kept in the history first, so nothing is lost. 409 version_unreadable when the old document no longer reads as a film. Whoever may open the film: its maker, and for a team's film every member whose role edits films (owner, admin, member). The signed in account; same origin for a write.
Parameters
| Field | Type | What it is |
|---|---|---|
| id (path)required | string | The project's id, stp_ followed by hex. |
| vid (path)required | string | The version's id. |
Answer 200
The film as it stands now (StudioProject).
The answer's fields are not named in the document.
Errors
- 400OpenAI shaped error.
- 401OpenAI shaped error.
- 403OpenAI shaped error.
- 404OpenAI shaped error.
- 409OpenAI shaped error.
- 429OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.