Write artifact files
Creates or overwrites one or more files in an artifact. Files that already exist are replaced; new files are appended. Files not mentioned in the request are left untouched.
This only updates source files — it does not compile or publish.
Call POST /v3/designs/{editorId}/artifacts/{artifactId}/publish when
you’re done with all file changes to compile and set the artifact
active.
Authorizations
Magic Patterns API key. The same key authenticates v3 REST and the MCP server. Create one at https://www.magicpatterns.com/settings/api-keys.
Path Parameters
The design's editor ID.
"abc123"
The artifact ID.
Body
1Response
Updated. Response lists all file names in the artifact after the write.
["App.tsx", "index.tsx", "index.css"]