Administration

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:readaccounting:writeaccounting:admin

Who can call it

admin

Retries

No idempotency key

MCP

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

Fields

  • idstring (ID)Required

    The record's ID.

  • indexintegerRequired

    0 to 100000000

  • confirmboolean

    Default false

  • digeststringRequired

    SHA-256 hash as 64 lowercase hex characters

Example

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"
}'
Response
{
  "data": { … }
}

Try it

Try it

Checks your input with this action’s real schema and answers like the API, with synthetic data. No key needed, and nothing changes.

POST/api/v1/accounting/organization.migration.putFile
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"
}'

More in Administration.