---
title: "Modifies an existing Deployment Target (identified by ID)."
method: PUT
path: "/{spaceId}/machines/{machineid}"
tags: ["DeploymentTargets"]
---

# Modifies an existing Deployment Target (identified by ID).

`PUT /{spaceId}/machines/{machineid}`

## Path parameters

- `spaceId` string, required
- `machineid` string, required

## Request body

- ModifyDeploymentTargetCommand
  - `Endpoint` EndpointResource
    - `CommunicationStyle` 'None' | 'TentaclePassive' | 'TentacleActive' | 'Ssh' | 'OfflineDrop' | 'AzureWebApp' | 'Ftp' | 'AzureCloudService' | 'AzureServiceFabricCluster' | 'Kubernetes' | 'StepPackage' | 'KubernetesTentacle' | 'AwsEcsCluster'
    - `Id` string
    - `LastModifiedBy` string
    - `LastModifiedOn` string, date-time
    - `Links` object
  - `EnvironmentIds` string[], required
  - `IsDisabled` boolean
  - `MachineId` string, required
  - `MachinePolicyId` string
  - `Name` string, required
  - `Roles` string[], required
  - `Slug` string
  - `SpaceId` string, required
  - `TenantedDeploymentParticipation` 'Untenanted' | 'TenantedOrUntenanted' | 'Tenanted'
  - `TenantIds` string[]
  - `TenantTags` string[]
  - `Thumbprint` string
  - `Uri` string

## Response `200`

The MachineResource following requested changes.

- MachineResource
  - `Architecture` string
  - `Endpoint` EndpointResource
    - `CommunicationStyle` 'None' | 'TentaclePassive' | 'TentacleActive' | 'Ssh' | 'OfflineDrop' | 'AzureWebApp' | 'Ftp' | 'AzureCloudService' | 'AzureServiceFabricCluster' | 'Kubernetes' | 'StepPackage' | 'KubernetesTentacle' | 'AwsEcsCluster'
    - `Id` string
    - `LastModifiedBy` string
    - `LastModifiedOn` string, date-time
    - `Links` object
  - `EnvironmentIds` string[]
  - `HasLatestCalamari` boolean
  - `HealthStatus` 'Healthy' | 'Unavailable' | 'Unknown' | 'HasWarnings' | 'Unhealthy'
  - `Id` string
  - `IsDisabled` boolean
  - `IsInProcess` boolean
  - `LastModifiedBy` string
  - `LastModifiedOn` string, date-time
  - `Links` object
  - `MachinePolicyId` string
  - `Name` string
  - `OperatingSystem` string
  - `OperatingSystemVersion` string
  - `Roles` string[]
  - `ShellName` string
  - `ShellVersion` string
  - `SkipInitialHealthCheck` boolean
  - `Slug` string
  - `SpaceId` string
  - `StatusSummary` string
  - `TenantedDeploymentParticipation` 'Untenanted' | 'TenantedOrUntenanted' | 'Tenanted'
  - `TenantIds` string[]
  - `TenantTags` string[]
  - `Thumbprint` string
  - `Uri` string

## 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)
