curl --request POST \
--url https://studio.weaverse.io/api/v1/content/projects/{projectId}/backups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"op": "create"
}'{
"object": "backup_created",
"deduped": false
}{
"object": "project_restored",
"newProjectId": "clz9b4c5d0012trew1qaz2wsx"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}Create a backup or restore one as a new project
Two operations, selected by op:
{ "op": "create" }: backs up the project now. Deduplicated: when the current content matches a stored snapshot, nothing is uploaded and the response hasdeduped: true. Returns 200{ object: "backup_created", deduped }.{ "op": "restore", "backupId": "…" }: restores that backup as a new project in the caller’s shop. It never overwrites the current project, so no confirmation is required. Returns 201{ object: "project_restored", newProjectId }.
Neither operation is destructive to existing content. The backup id must belong to this project (404 otherwise).
Required scope: project:manage
curl --request POST \
--url https://studio.weaverse.io/api/v1/content/projects/{projectId}/backups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"op": "create"
}'{
"object": "backup_created",
"deduped": false
}{
"object": "project_restored",
"newProjectId": "clz9b4c5d0012trew1qaz2wsx"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}Authorizations
Bearer authentication: a shop API key (WEAVERSE_API_KEY), a scoped API key, a delegated MCP OAuth token, or (translation-unit routes only) a project-bound translation agent token. Scopes: content:read — Read projects, pages, theme settings, versions, drafts and translation units. content:write — Save drafts and make non-destructive edits (page items, metadata, SEO, assignments, languages, glossary). Never publishes or deletes. content:publish — Publish drafts, schedule/reschedule/cancel publications, restore versions, publish global sections. content:delete — Delete pages, global sections, languages, static keys, override reverts; required with project:manage for project deletion. project:manage — Create/copy/delete projects, settings, variants, hierarchy, backups, restore-as-new, previews, hostname policy. translations:read — Read translation units only (no general content access). translations:write — Apply translation units only; never mutates page content. A legacy unscoped API key keeps read/write/translation baseline access and every pre-scope endpoint, but never gains publish/delete/project-manage implicitly.
Path Parameters
Body
- Option 1
- Option 2
Response
Created (deduped flag)
The response is of type object.
Was this page helpful?