Create an app deployment
POST
/api/v1/apps/{app_name}/deployments
const url = 'https://example.com/api/v1/apps/example/deployments';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"source_code_path":"example","mode":"SNAPSHOT"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/apps/example/deployments \ --header 'Content-Type: application/json' \ --data '{ "source_code_path": "example", "mode": "SNAPSHOT" }'Create a new deployment of an app. Only Nexa-managed apps can be deployed.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”app_name
required
App Name
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
CreateAppDeploymentRequest
Request model for creating an app deployment.
object
mode
Any of:
DeploymentMode
Deployment mode enum from Databricks.
string
null
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
AppDeployment
App deployment model matching Databricks specification.
object
deployment_artifacts
Any of:
AppDeploymentArtifacts
Deployment artifacts information.
null
mode
Any of:
DeploymentMode
Deployment mode enum from Databricks.
string
null
deployment_status
Any of:
AppDeploymentStatus
Deployment status information.
null
Example
{ "mode": "SNAPSHOT", "deployment_status": { "state": "IN_PROGRESS" }}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}