Skip to main content
POST
Change a workspace

Authorizations

Authorization
string
header
required

A VidJutsu API key (vj_live_...) from POST /auth/verify or POST /keys, or an OAuth access token (MCP clients).

Headers

VidJutsu-Version
string

The API version you wrote your integration against, a date. Without it you get the latest version. The current version is 2026-11-03. See https://docs.vidjutsu.ai/api-reference/introduction#versioning.

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2026-11-03"

Idempotency-Key
string

Makes a write safe to retry: the same key returns the first result instead of doing the work twice. Up to 128 printable characters.

Maximum string length: 128

Path Parameters

workspace
string
required

A graphics workspace name: 1 to 80 letters, digits, - or _ (yours to pick).

Body

application/json

One new version of the workspace, made from the current one and these changes. Every field is optional.

delete
string[]

Paths to remove.

expected_bundle
string | null

The bundle you read (from graphics_list); if the workspace moved on since, nothing is written (409). Leave out to write on top of whatever is current.

files
object[]

Other files (images, fonts, footage) by hash: missing ones get a PUT link.

patch
object[]

Find-and-replace edits in text files already in the workspace.

restore
string | null

Go back to an earlier bundle of this workspace (from history) first.

write
object[]

Text files written whole (new or replaced).

Response

The new version

bundle
string
required

gb_ and 32 hex digits.

bytes
integer
required
expires_at
integer
required

Unix seconds.

files
integer
required
missing
object[]
required
stored_inline
integer
required

Files stored from inline text by this call.

version
integer

Set by graphics_write.

workspace
string

Set by graphics_write.