templates

Start template build (v2)

Changed on

Start the build

post/v2/templates/{templateID}/builds/{buildID}

Request

  • Base URL
    https://api.e2b.app
  • URL
    https://api.e2b.app/v2/templates/{templateID}/builds/{buildID}
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer and API key in header X-Team-ID
    • or API key in header X-Admin-Token and API key in header X-Team-ID
    • or HTTP bearer and API key in header X-Team-ID

Path parameters

templateIDstring required
buildIDstring required

Request body

fromImagestring

Image to use as a base for the template build

fromTemplatestring

Template to use as a base for the template build

forceboolean

Whether the whole build should be forced to run regardless of the cache

startCmdstring

Start command to execute in the template after the build

readyCmdstring

Ready check command to execute in the template after the build

Response

The build has started

Changes

    • breaking

      added the pattern ^[0-9a-f]{64}$ to the request property //

    • breaking

      the request property's minLength was increased from 0 to 1

    • breaking

      the request property's minLength was increased from 0 to 1

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status