Skip to main content
POST
Restore the theme's draft content to a past published version

Authorizations

Authorization
string
header
required

Bearer token authentication

Path Parameters

id
integer
required

Application theme ID

Body

application/json
sha
string
required

Commit SHA to restore, as returned by the git_versions operation. Accepts an abbreviated (7+ character) SHA.

Response

The version was applied to the theme's draft records.

sha
string
required

The commit that was restored.

files_written
integer
required

Files the version carried into the theme.

files_removed
integer
required

Files removed because the version did not contain them.