Skip to main content
PATCH
Write artifact files

Authorizations

x-mp-api-key
string
header
required

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

editorId
string
required

The design's editor ID.

Example:

"abc123"

artifactId
string
required

The artifact ID.

Body

application/json
files
object[]
required
Minimum array length: 1

Response

Updated. Response lists all file names in the artifact after the write.

files
string[]
Example: