Upload stack packedit

Adds a new or updates an existing Elastic Stack pack and its template. Besides multipart/form-data requests, the endpoint supports application/zip and application/octet-stream requests with a binary body. Maximum size of the payload is 1Mb. If the archive contains a stack configuration that is already available through the API, then the existing configuration and its template will be overwritten.

Requestedit

POST /api/v1/stack/versions

Form Parametersedit

Name Type Required Description

file

file

Y

Zip file that contains one or multiple stack configurations

Responsesedit

200

(StackVersionArchiveProcessingResult) The Stack Pack was processed successfully

400

(BasicFailedReply) Bad archive or some unexpected error occurred

To perform this operation, you must be authenticated by means of one of the following methods: apiKey, basicAuth.

Request exampleedit

curl -XPOST {{hostname}}/api/v1/stack/versions \
-u $CLOUD_USER:$CLOUD_KEY