Create compute version

⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️

Creates a new compute version under the specified compute service. The computeServiceId is required in the request body. Returns a pre-signed upload URL for the artifact unless skipCodeUpload is set. Environment variables are merged with the previous version's variables when one exists.

POST/v1/versions
AuthorizationBearer <token>

OAuth2 authentication

In: header

Scope: workspace:admin, offline_access

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.prisma.io/v1/versions" \  -H "Content-Type: application/json" \  -d '{    "computeServiceId": "string"  }'
{
  "data": {
    "id": "string",
    "type": "compute-version",
    "url": "http://example.com",
    "foundryVersionId": "string",
    "uploadUrl": "string"
  }
}