deployments

Creates a new deployment from the same source as one whose tests or connector changes failed.

If its tests failed, the new deployment skips the test phase; if connector changes failed, connectors that fail to apply are skipped. Other deployments return 400.

Required permission: deployments.override.

post/v1/projects/{project_id}/deployments/{deployment_id}/deploy-anyway

Request

  • Base URL
    https://api.connic.co
  • Auth
    HTTP bearer

Path parameters

project_id, string uuid required

ID of the project the API key belongs to.

deployment_id, string uuid required

Deployment ID from GET /deployments.

Response

Successful Response

DeploymentResponse required

A build of the project's agents for one environment.

id, string uuid required
project_id, string uuid required

Project the deployment belongs to.

environment_id, string uuid required

Environment the deployment belongs to.

commit_hash, string nullable required

Git commit or ref that was built. null for CLI uploads.

source_type, 'git' | 'cli_upload' required

git for builds from the connected repository, cli_upload for code uploaded with the CLI.

status, 'pending' | 'building' | 'deployed' | 'failed' | 'blocked' | 'cancelled' required

Lifecycle state of the build. A deployed deployment serves traffic only while is_active is true.

is_active, boolean required

Whether this deployment currently serves the environment.

agents_metadata, string required

JSON-encoded array with the configuration of each agent found in the code. [] until the build discovers agents.

agents_count, integer required

Number of agents in the deployment.

tools_count, integer required

Number of distinct tools referenced by the agents.

middlewares_count, integer required

Number of middleware modules found.

guardrails_count, integer required

Number of distinct guardrail types used by the agents.

logs, string nullable required

Build and activation log output. null until the build writes output.

error, string nullable

Why the deployment failed, such as a validation error or failing deploy-gate tests. null unless status is failed.

created_at, string date-time required
started_at, string date-time nullable required

When the build started. null while pending.

ended_at, string date-time nullable required

When the deployment finished, failed or was cancelled.

testing_started_at, string date-time nullable required

When the test phase started. null if it has not run.

deploy_started_at, string date-time nullable required

When activation started. null if it has not started.

tests_status, 'running' | 'passed' | 'failed' | 'skipped' | 'cancelled' nullable required

Result of the deploy-gate test phase. null when tests have not run or the code has no tests.

skip_tests, boolean required

Whether the deploy-gate test phase was skipped for this deployment.

connic_triggered, boolean required

Whether connic started this deployment on the project's behalf.

kind, 'deploy' | 'dev_session' | 'test_run' | 'app_publish' required

deploy for a regular deployment, dev_session for code synced by connic dev, test_run for a build that only runs tests, app_publish for an app instance an agent published that was blocked.

current_phase, string nullable required

Current phase: building, testing, deploying, active or done. null before the build starts.

connectors_status, 'applied' | 'partial' | 'failed' nullable

Result of applying the connectors declared in code: applied, partial when some failed and kept their previous state, or failed. null until connectors are applied.

skip_failed_connectors, boolean

Whether connectors declared in code that fail to apply keep their previous state instead of failing the deployment.

Changes