Engine import API
6 operations. Back to the API overview. Examples use synthetic data.
List imports
GET /admin/v1/migrate/imports
Needs the permission: config:history.
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
imports | any | optional | - |
translation_available | any | optional | - |
{
"imports": {},
"translation_available": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/migrate/imports"Create import
POST /admin/v1/migrate/imports
Needs the permission: config:write.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
engine | query | string | optional | - |
name | query | string | optional | - |
Request body
{}Response 201
{}Other responses
400Bad Request401Authentication required403Not permitted404Not Found500Internal Server Error503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{}' \
"https://YOUR-CONSOLE-HOST/admin/v1/migrate/imports"Get import
GET /admin/v1/migrate/imports/{id}
Needs the permission: config:history.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Response 200
{}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/migrate/imports/example-id"Cancel import
POST /admin/v1/migrate/imports/{id}/cancel
Needs the permission: config:write.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
version | integer | optional | - |
{
"version": 1
}Response 200
{}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/migrate/imports/example-id/cancel"Translate import
POST /admin/v1/migrate/imports/{id}/translate
Needs the permission: config:write.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
max_rounds | integer | optional | - |
parallel_run | string | optional | - |
scripts | array of string | optional | - |
version | integer | optional | - |
{
"max_rounds": 1,
"parallel_run": "example",
"scripts": [
"example"
],
"version": 1
}Response 202
{}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"max_rounds":1,"parallel_run":"example","scripts":["example"],"version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/migrate/imports/example-id/translate"Replaces a draft parallel run's candidate and destination map (validated like a new run's)
PUT /admin/v1/parallel-runs/{id}/candidate
Replaces a draft parallel run's candidate and destination map (validated like a new run's).
Needs the permission: dlq:retransmit.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
candidate | object (ParallelrunCandidate) | optional | Candidate is a configuration to test: the live configuration (or the configuration as it was at a moment) with changes applied on top, never written to the live configuration. |
candidate.base | string | optional | Base is "live" (the current configuration) or an RFC 3339 time (the configuration as of then). Empty means live. |
candidate.changes | array of object (ParallelrunCandidateChange) | optional | Changes are applied over the base: entities of the versioned configuration (route, code_map, code_set, provider_directory, script). A script change carries a draft only: its active version is always the base's (activation needs scripts:activate and passing samples, never a candidate). |
candidate.draft_scripts | array of string | optional | DraftScripts are scripts whose draft (the base's, or the one in Changes) the replay runs in place of their active version, so a translated or edited script is compared before anyone activates it. Nothing is activated or stored in the live configuration. |
reason | string | optional | - |
routes | map of string | optional | - |
version | integer | optional | - |
{
"candidate": {
"base": "example",
"changes": [
{
"deleted": true,
"document": {},
"id": "example-id",
"kind": "example"
}
],
"draft_scripts": [
"example"
]
},
"reason": "Example text",
"routes": {
"example": "example"
},
"version": 1
}Response 200
{}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request PUT \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"candidate":{"base":"example","changes":[{"deleted":true,"document":{},"id":"example-id","kind":"example"}],"draft_scripts":["example"]},"reason":"Example text","routes":{"example":"example"},"version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/parallel-runs/example-id/candidate"Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.