---
title: "Record the deployed revision that holds legacy 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 revision that holds legacy ownership

Path: CloudRaker Workspace API › Workspace Triggers

`POST /triggers/legacy-handoff`

Stores the readiness record a real (non-dry-run) automation transfer requires: the deployed 40-character revision plus one settled fire claim and one settled write claim observed against it.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Request body

_Required._

- `gatewayRevision` (`markLegacyAutomationHandoff.gatewayRevision`; string, required)
  - pattern `^[a-f0-9]{40}$`
- `verifiedClaimId` (`markLegacyAutomationHandoff.verifiedClaimId`; string, required)
  - maxLength 128; pattern `^tlc_[A-Za-z0-9_-]+$`
- `verifiedWriteClaimId` (`markLegacyAutomationHandoff.verifiedWriteClaimId`; string, required)
  - maxLength 128; pattern `^tlc_[A-Za-z0-9_-]+$`

## Example request

```json
{
  "gatewayRevision": "string",
  "verifiedClaimId": "string",
  "verifiedWriteClaimId": "string"
}
```

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/triggers/legacy-handoff';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    gatewayRevision: 'string',
    verifiedClaimId: 'string',
    verifiedWriteClaimId: '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-handoff"

payload = {
    "gatewayRevision": "string",
    "verifiedClaimId": "string",
    "verifiedWriteClaimId": "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",
    "verifiedClaimId": "string",
    "verifiedWriteClaimId": "string",
    "verifiedAt": "2019-08-24T14:15:22Z"
  }
}
```

- `data` (`markLegacyAutomationHandoff.response.200.data`; object, required)
  - `gatewayRevision` (`markLegacyAutomationHandoff.response.200.data.gatewayRevision`; string, required)
    - pattern `^[a-f0-9]{40}$`
  - `verifiedClaimId` (`markLegacyAutomationHandoff.response.200.data.verifiedClaimId`; string, required)
    - maxLength 128; pattern `^tlc_[A-Za-z0-9_-]+$`
  - `verifiedWriteClaimId` (`markLegacyAutomationHandoff.response.200.data.verifiedWriteClaimId`; string, required)
    - maxLength 128; pattern `^tlc_[A-Za-z0-9_-]+$`
  - `verifiedAt` (`markLegacyAutomationHandoff.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))$`

### 400

`validation_failed`: a request body field is invalid.

#### Example

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

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


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