# organization.migration.putFile

Copy and verify one organization migration file. Returns a signed upload URL, then confirm true checks the uploaded SHA-256 digest. Files stay confined to the destination organization. Retries reuse matching copies.

`POST /api/v1/accounting/organization.migration.putFile`

Permissions: `accounting:read`, `accounting:write`, `accounting:admin` · Roles: admin

Not available over MCP: Organization data moves need administrator sign-ins at both installations and an explicit cutover in Settings or the CLI.

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `id` | string (ID) | Yes | The record's ID. |
| `index` | integer | Yes | 0 to 100000000. |
| `confirm` | boolean |  | Default `false`. |
| `digest` | string | Yes | SHA-256 hash as 64 lowercase hex characters. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/organization.migration.putFile \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
  "index": 1,
  "digest": "9f2b5c1d7e3a4b6c8d0e2f4a6b8c0d2e4f6a8b0c2d4e6f8a0b2c4d6e8f0a2b4c"
}'
```

Reference page: https://app.getoatmilk.com/docs/api/organization.migration.putFile
