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.
Documentation Index
Fetch the complete documentation index at: https://magicpatterns.mintlify.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
Magic Patterns API key. The same key authenticates v3 REST and the MCP server. Create one at https://www.magicpatterns.com/settings/api-keys.
The design's editor ID.
"abc123"
The artifact ID.
1Updated. Response lists all file names in the artifact after the write.
["App.tsx", "index.tsx", "index.css"]