Skip to main content
Artifacts endpoint

Register Artifact Recipe

POST/artifacts/recipe/

Request field shape

application/json

Field names and types are inferred. Use the checked notes below to supply valid values.

{
  "dockerfile": "string",
  "contextArchive": [
    "string"
  ],
  "recipePath": "string",
  "platform": "string",
  "arguments": {}
}

Handler-checked behavior​

Send multipart form data with Dockerfile text in dockerfile or a context archive in the context file field. Use recipePath for a Dockerfile inside an archive, platform for the target platform, and arguments for optional build arguments encoded as a JSON string map. The response includes the portable origin and build specification. Registration does not start a build.

See the Artifacts guide for related tasks and context.