Create Deployment
const url = 'https://example.com/api/v1/deployments';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"git_repository":"example","branch":"main","environment_name":"default","file_pattern":"example","variables":{"additionalProperty":"example"},"on_error":"break","description":"example","manifest":[{"file":"example","objects":[{"name":"example","type":"example"}]}]}'};
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/deployments \ --header 'Content-Type: application/json' \ --data '{ "git_repository": "example", "branch": "main", "environment_name": "default", "file_pattern": "example", "variables": { "additionalProperty": "example" }, "on_error": "break", "description": "example", "manifest": [ { "file": "example", "objects": [ { "name": "example", "type": "example" } ] } ] }'Create a deployment record and initialize file details.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Request to create a new deployment.
object
Git repository name in Snowflake
Git branch to deploy
Behavior on error: ‘break’ or ‘continue’
Manifest entry mapping file to objects.
object
Relative file path in repository
Object declared in deployment manifest.
object
Fully qualified object name
Object type (TABLE, VIEW, TASK, STREAM, etc.)
Responses
Section titled “Responses”Successful Response
Complete deployment status with file details.
object
Deployment information
object
Deployment ID
Git repository name
Git branch
Deployment status
Error handling behavior
Creation timestamp
File deployment details
Individual file deployment detail.
object
Detail record ID
Relative file path in repository
Type of file
Git change status
Deployment status
Order of execution
Deployment statistics
object
Example
{ "deployment": { "status": "pending" }, "files": [ { "file_type": "sql_ddl", "git_status": "added", "deployment_status": "pending" } ]}Validation Error
object
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}