Upload and register a new OpenVM program for compilation.
The program must be uploaded as a tar.gz archive containing the guest program source code and dependencies. You can either provide a config_id for an existing configuration or upload a new config file.
curl -X POST "https://api.axiom.xyz/v1/programs" \
-H "Axiom-API-Key: your-api-key" \
-F "program=@my_program.tar.gz" \
-F "config_id=cfg_xxxx" \
-F "program_path=." \
-F "cargo_root_path=." \
-F "project_name=My Project"
The UUID of the config to use
The relative path from the uploaded directory root to the guest program
The relative path from the uploaded directory root to the cargo workspace root
The name of the binary to build. If not provided, the build will succeed only if there is one binary in the workspace.
If applicable, the commit sha of the guest program
The ID of the project to associate this program with. If not provided, a new project will be created.
Name for new project if project_id is not provided
Successful Response
Generic response for POST operations.