Deploy a downloaded package
Deploys a downloaded package in a customer workspace to an environment. You must use the Build project endpoint (/api/managed_users/:managed_user_id/projects/:id/build
) to build the project before you can deploy it.
Path parameters
managed_user_id
Embedded customer ID (external ID). The External ID must be URL encoded and prefixed with an E
. For example, EA2300
.
id
The ID of the project build to retrieve.
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
environment_type
The environment the build deploys to. Must be either test
or prod
.’
title
Title of the build.
description
A brief description of the build.
Response
Success reply
id
Deployment ID.
created_at
Timestamp in ISO 8601 format.
updated_at
Timestamp in ISO 8601 format.
title
Title of the deployment.
description
Description of the deployment.
project_build_id
ID of the associated project build.
environment_type
The environment where the project is deployed.
project_id
Project ID.
state
Status of the build. Possible values are: pending
, success
, and failed
.
Allowed values:
performed_by_name
Name of the user who initiated the build.