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. Returns a pre-signed upload URL for the artifact unless skipCodeUpload is set (which forks the latest version's artifact). Environment variables are merged with the previous version's variables when one exists.
POST
/v1/compute-services/{computeServiceId}/versionsAuthorizationBearer <token>
OAuth2 authentication
In: header
Scope: workspace:admin, offline_access
Path Parameters
computeServiceId*string
Match
^(cps_)?([cC][^\s-]{8,}|[a-z0-9]+)$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/compute-services/string/versions" \ -H "Content-Type: application/json" \ -d '{}'{
"data": {
"id": "string",
"type": "compute-version",
"url": "http://example.com",
"foundryVersionId": "string",
"uploadUrl": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"hint": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"hint": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"hint": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"hint": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"hint": "string"
}
}