

# Input devices: cancel device transfer


## URI


`/prod/inputDevices/inputDeviceId/cancel`

## HTTP methods


### POST


**Operation ID:** `CancelInputDeviceTransfer`


**Path parameters**  

| Name | Type | Required | Description | 
| --- |--- |--- |--- |
| inputDeviceId | String | True |  | 


**Responses**  

| Status code | Response model | Description | 
| --- |--- |--- |
| 200 | None | 200 response | 
| 400 | InvalidRequest | 400 response | 
| 403 | AccessDenied | 403 response | 
| 404 | ResourceNotFound | 404 response | 
| 409 | ResourceConflict | 409 response | 
| 422 | ValidationError | 422 response | 
| 429 | LimitExceeded | 429 response | 
| 500 | InternalServiceError | 500 response | 
| 502 | BadGatewayException | 502 response | 
| 504 | GatewayTimeoutException | 504 response | 

## Schemas


### Response bodies


#### InvalidRequest schema
InvalidRequest

```
{
  "message": "string"
}
```

#### AccessDenied schema
AccessDenied

```
{
  "message": "string"
}
```

#### ResourceNotFound schema
ResourceNotFound

```
{
  "message": "string"
}
```

#### ResourceConflict schema
ResourceConflict

```
{
  "message": "string"
}
```

#### ValidationError schema
ValidationError

```
{
  "elementPath": "string",
  "errorMessage": "string"
}
```

#### LimitExceeded schema
LimitExceeded

```
{
  "message": "string"
}
```

#### InternalServiceError schema
InternalServiceError

```
{
  "message": "string"
}
```

#### BadGatewayException schema
BadGatewayException

```
{
  "message": "string"
}
```

#### GatewayTimeoutException schema
GatewayTimeoutException

```
{
  "message": "string"
}
```

## Properties


### AccessDenied



| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | False |  | 

### BadGatewayException



| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | False |  | 

### GatewayTimeoutException



| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | False |  | 

### InternalServiceError



| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | False |  | 

### InvalidRequest



| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | False |  | 

### LimitExceeded



| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | False |  | 

### ResourceConflict



| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | False |  | 

### ResourceNotFound



| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | False |  | 

### ValidationError



| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| elementPath | string | False | Path to the source of the error. | 
| errorMessage | string | False | The error message. | 

## See also


For more information about using this API in one of the language-specific AWS SDKs and references, see the following:

### CancelInputDeviceTransfer

+ [AWS Command Line Interface V2](/goto/cli2/medialive-2017-10-14/CancelInputDeviceTransfer)
+ [AWS SDK for .NET V4](/goto/DotNetSDKV4/medialive-2017-10-14/CancelInputDeviceTransfer)
+ [AWS SDK for C\$1\$1](/goto/SdkForCpp/medialive-2017-10-14/CancelInputDeviceTransfer)
+ [AWS SDK for Go v2](/goto/SdkForGoV2/medialive-2017-10-14/CancelInputDeviceTransfer)
+ [AWS SDK for Java V2](/goto/SdkForJavaV2/medialive-2017-10-14/CancelInputDeviceTransfer)
+ [AWS SDK for JavaScript V3](/goto/SdkForJavaScriptV3/medialive-2017-10-14/CancelInputDeviceTransfer)
+ [AWS SDK for Kotlin](/goto/SdkForKotlin/medialive-2017-10-14/CancelInputDeviceTransfer)
+ [AWS SDK for PHP V3](/goto/SdkForPHPV3/medialive-2017-10-14/CancelInputDeviceTransfer)
+ [AWS SDK for Python](/goto/boto3/medialive-2017-10-14/CancelInputDeviceTransfer)
+ [AWS SDK for Ruby V3](/goto/SdkForRubyV3/medialive-2017-10-14/CancelInputDeviceTransfer)