---
title: "Create a new tenanted deployment."
method: POST
path: "/{spaceId}/deployments/create/tenanted/v1"
tags: ["Deployments"]
---

# Create a new tenanted deployment.

`POST /{spaceId}/deployments/create/tenanted/v1`

## Path parameters

- `spaceId` string, required

## Request body

- CreateDeploymentTenantedCommandV1
  - `DebugMode` string
  - `DeploymentFreezeNames` string[]
  - `DeploymentFreezeOverrideReason` string
  - `EnvironmentName` string, required
  - `ExcludedMachineNames` string[]
  - `ExcludedTargetTagNames` string[]
  - `ForcePackageDownload` boolean
  - `ForcePackageRedeployment` boolean
  - `NoRunAfter` string, date-time
  - `Priority` string
  - `ProjectName` string, required
  - `ReleaseVersion` string, required
  - `RunAt` string, date-time
  - `SkipStepNames` string[]
  - `SpaceId` string, required
  - `SpaceIdOrName` string, required
  - `SpecificMachineNames` string[]
  - `SpecificTargetTagNames` string[]
  - `Tenants` string[]
  - `TenantTags` string[]
  - `UpdateVariableSnapshot` boolean
  - `UseGuidedFailure` boolean
  - `Variables` object

## Response `200`

Server tasks associated with the newly-created Deployment

- CreateDeploymentTenantedResponseV1
  - `DeploymentServerTasks` DeploymentServerTask[], required
    - `DeploymentId` string, required
    - `ServerTaskId` string, required

## Other responses

- `400` — Bad request. Either the payload was not structurally valid or business rules did not permit the operation.
- `404` — Not found. One or more of the entities involved in the operation was not found.

---

[API](https://skmtc.net/octopus/apis/octopus-server-api.md) · [All operations](https://skmtc.net/octopus/apis/octopus-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/octopus/octopus-server-api/versions/bc9158facfc7/schema)
