Skip to content

Deploy an uploaded image

POST/api/v1/deploy/services/{id}/image

The body is a gzipped image archive of at most 16 GB.

Needs an API key in the Authorization header.

On this page

Parameters

FieldInTypeDescription
idrequiredpathstring
A service id, or project/service, or project/environment/service
formatquerystring
text answers in plain text instead of JSON
  • one of: json, text
x-polaris-commitheaderstring
The commit the image was built from
x-polaris-messageheaderstring
The commit message, URI-encoded

Example request

curl -X POST "https://polaris.example.com/api/v1/deploy/services/{id}/image" \
  -H "Authorization: Bearer $POLARIS_API_KEY"

Responses

StatusMeaning
202Accepted

Can also answer the common errors 400, 401, 403, 404, 429. See common errors