Publish an artifact
Artifacts
Publish an artifact
Compiles the artifact’s source files and sets it as the active artifact for the design. This is the final step in a code-first workflow: after writing files, call this to make the changes visible in the editor and live preview.
Returns 422 Unprocessable Entity if compilation fails.
POST
Publish an artifact
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.
Example:
"abc123"
The artifact ID.