Skip to main content
POST
/
api
/
v1
/
dma
/
v2
/
projects
/
{project_id}
/
translate
/
jobs
Start a DMA translation job
curl --request POST \
  --url https://app.datafold.com/api/v1/dma/v2/projects/{project_id}/translate/jobs \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "concurrency": 12,
  "fail_fast": false,
  "preserve_dbt_temp_dirs": false,
  "recreate_all": false
}
'
{
  "status": "needs_confirmation",
  "task_id": "<string>",
  "translated_models": [
    {
      "asset_id": "<string>",
      "asset_name": "<string>",
      "translation_status": "no_translation_attempts",
      "datadiff_id": 123,
      "failure_summary": {
        "error_message": "<string>",
        "problem": "<string>",
        "reason": "max_iterations",
        "solution": "<string>",
        "location": "<string>"
      },
      "source_filename": "<string>",
      "source_sql": "<string>",
      "target_sql": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Use the 'Authorization' header with the format 'Key '

Path Parameters

project_id
integer
required

Body

application/json

Request to run translation pipeline.

asset_paths
string[] | null
concurrency
integer
default:12
drop_unresolved
string[] | null
fail_fast
boolean
default:false
identity
Identity · object
include_unverified
string[] | null
max_iterations
integer | null
preserve_dbt_temp_dirs
boolean
default:false
recreate_all
boolean
default:false
stages
string[] | null
transform_group_ids
string[] | null

Response

Successful Response

Response for translation task.

status
enum<string>
required
Available options:
needs_confirmation,
needs_authentication,
waiting,
processing,
done,
failed,
cancelled
task_id
string
required
translated_models
ApiTranslatedModel · object[] | null