---
title: "Record the deployed revisions that hold channel ownership"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Record the deployed revisions that hold channel ownership

Path: CloudRaker Workspace API › Workspace Triggers

`POST /triggers/legacy-channel-handoff`

The channel equivalent of the automation readiness record: both deployed revisions, plus a settled fire, write or create claim observed against them where one exists. Every legacy channel producer is retired, so a claim id is optional — omit it and the producer records readiness once no legacy channel operation is in flight.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Request body

_Required._

- `gatewayRevision` (`markLegacyChannelHandoff.gatewayRevision`; string, required)
  - pattern `^[a-f0-9]{40}$`
- `centerRevision` (`markLegacyChannelHandoff.centerRevision`; string, required)
  - pattern `^[a-f0-9]{40}$`
- `verifiedFireClaimId` (`markLegacyChannelHandoff.verifiedFireClaimId`; string, optional)
  - minLength 1; maxLength 200
- `verifiedWriteClaimId` (`markLegacyChannelHandoff.verifiedWriteClaimId`; string, optional)
  - minLength 1; maxLength 200
- `verifiedCreateClaimId` (`markLegacyChannelHandoff.verifiedCreateClaimId`; string, optional)
  - minLength 1; maxLength 200

## Example request

```json
{
  "gatewayRevision": "string",
  "centerRevision": "string",
  "verifiedFireClaimId": "string",
  "verifiedWriteClaimId": "string",
  "verifiedCreateClaimId": "string"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.cloudraker.com/triggers/legacy-channel-handoff \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "gatewayRevision": "string",
  "centerRevision": "string",
  "verifiedFireClaimId": "string",
  "verifiedWriteClaimId": "string",
  "verifiedCreateClaimId": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/triggers/legacy-channel-handoff';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    gatewayRevision: 'string',
    centerRevision: 'string',
    verifiedFireClaimId: 'string',
    verifiedWriteClaimId: 'string',
    verifiedCreateClaimId: 'string'
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/triggers/legacy-channel-handoff"

payload = {
    "gatewayRevision": "string",
    "centerRevision": "string",
    "verifiedFireClaimId": "string",
    "verifiedWriteClaimId": "string",
    "verifiedCreateClaimId": "string"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

The producer record, proxied unchanged.

#### Example

```json
{
  "data": {
    "gatewayRevision": "string",
    "centerRevision": "string",
    "verifiedFireClaimId": "string",
    "verifiedWriteClaimId": "string",
    "verifiedCreateClaimId": "string",
    "verifiedAt": "2019-08-24T14:15:22Z"
  }
}
```

- `data` (`markLegacyChannelHandoff.response.200.data`; object, required)
  - `gatewayRevision` (`markLegacyChannelHandoff.response.200.data.gatewayRevision`; string, required)
    - pattern `^[a-f0-9]{40}$`
  - `centerRevision` (`markLegacyChannelHandoff.response.200.data.centerRevision`; string, required)
    - pattern `^[a-f0-9]{40}$`
  - `verifiedAt` (`markLegacyChannelHandoff.response.200.data.verifiedAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
  - `verifiedFireClaimId` (`markLegacyChannelHandoff.response.200.data.verifiedFireClaimId`; string, optional)
    - minLength 1; maxLength 200
  - `verifiedWriteClaimId` (`markLegacyChannelHandoff.response.200.data.verifiedWriteClaimId`; string, optional)
    - minLength 1; maxLength 200
  - `verifiedCreateClaimId` (`markLegacyChannelHandoff.response.200.data.verifiedCreateClaimId`; string, optional)
    - minLength 1; maxLength 200

### 400

`validation_failed`: a request body field is invalid.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`markLegacyChannelHandoff.response.400.error`; string, required) — The sentence a human reads.
- `error_code` (`markLegacyChannelHandoff.response.400.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`markLegacyChannelHandoff.response.400.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`markLegacyChannelHandoff.response.400.issues.path`; string, required)
  - `code` (`markLegacyChannelHandoff.response.400.issues.code`; string, required)
  - `message` (`markLegacyChannelHandoff.response.400.issues.message`; string, required)

### 403

`forbidden` — organization administrators only.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`markLegacyChannelHandoff.response.403.error`; string, required) — The sentence a human reads.
- `error_code` (`markLegacyChannelHandoff.response.403.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`markLegacyChannelHandoff.response.403.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`markLegacyChannelHandoff.response.403.issues.path`; string, required)
  - `code` (`markLegacyChannelHandoff.response.403.issues.code`; string, required)
  - `message` (`markLegacyChannelHandoff.response.403.issues.message`; string, required)

### 409

`handoff_incomplete` — no readiness record covers this transfer yet.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`markLegacyChannelHandoff.response.409.error`; string, required) — The sentence a human reads.
- `error_code` (`markLegacyChannelHandoff.response.409.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`markLegacyChannelHandoff.response.409.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`markLegacyChannelHandoff.response.409.issues.path`; string, required)
  - `code` (`markLegacyChannelHandoff.response.409.issues.code`; string, required)
  - `message` (`markLegacyChannelHandoff.response.409.issues.message`; string, required)

### 422

`source_changed` — the legacy source moved under the expected hash.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`markLegacyChannelHandoff.response.422.error`; string, required) — The sentence a human reads.
- `error_code` (`markLegacyChannelHandoff.response.422.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`markLegacyChannelHandoff.response.422.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`markLegacyChannelHandoff.response.422.issues.path`; string, required)
  - `code` (`markLegacyChannelHandoff.response.422.issues.code`; string, required)
  - `message` (`markLegacyChannelHandoff.response.422.issues.message`; string, required)


Source: https://docs.cloudraker.com/workspace/api/workspace-triggers/mark-legacy-channel-handoff/index.md
