Mappings API
4 operations. Back to the API overview. Examples use synthetic data.
List mappings
GET /admin/v1/mappings
Needs the permission: config:history.
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
code_maps | array of string | optional | - |
code_sets | array of string | optional | - |
functions | any | optional | - |
mappings | array of object (MappingSummary) | optional | - |
mappings.[]active | object (ActiveJSON) | optional | - |
mappings.[]description | string | optional | - |
mappings.[]draft | object (ScriptCode) | optional | Code is one script version: what runs. |
mappings.[]draft_sha256 | string | optional | - |
mappings.[]hand_edited | boolean | optional | - |
mappings.[]id | string | optional | - |
mappings.[]kept_blocks | boolean | optional | - |
mappings.[]pending | boolean | optional | Pending: the draft differs from the active version. |
mappings.[]routes | array of string | optional | - |
mappings.[]rules | integer | optional | - |
mappings.[]samples | integer | optional | - |
mappings.[]version | integer | optional | - |
max_rules | any | optional | - |
{
"code_maps": [
"example"
],
"code_sets": [
"example"
],
"functions": {},
"mappings": [
{
"active": {
"activated_at": "2026-01-15T14:30:00Z",
"activated_by": "example",
"code": {
"dialect": "example",
"format": "example",
"kind": "example",
"language": "example",
"limits": {},
"output": "example",
"source": "example"
},
"draft_version": 1,
"samples_passed": 1,
"sha256": "example"
},
"description": "example",
"draft": {
"dialect": "example",
"format": "example",
"kind": "example",
"language": "example",
"limits": {
"memory_mb": 1,
"time_ms": 1
},
"output": "example",
"source": "example"
},
"draft_sha256": "example",
"hand_edited": true,
"id": "example-id",
"kept_blocks": true,
"pending": true,
"routes": [
"example"
],
"rules": 1,
"samples": 1,
"version": 1
}
],
"max_rules": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/mappings"Preview mapping
POST /admin/v1/mappings/preview
Needs the permissions: config:write, payload:read.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
id | string | optional | ID is the script the rules belong to (its kept blocks run too and its saved samples can be used); empty for a new mapping. |
mapping | object (MappingMapping) | optional | Mapping is a visual mapping: the message format and its rules. |
mapping.format | string | optional | - |
mapping.namespaces | map of string | optional | Namespaces binds the prefixes an xml mapping's paths use ("p" to its namespace URI). An unprefixed name matches that local name in any namespace, so most mappings need none. |
mapping.rules | array of object (MappingRule) | optional | - |
message | string | optional | Message is a pasted sample (payload:read); Sample names a saved one. |
sample | string | optional | - |
{
"id": "example-id",
"mapping": {
"format": "example",
"namespaces": {
"example": "example"
},
"rules": [
{
"from": "example",
"index": 1,
"map": "example",
"note": "example",
"op": "example",
"otherwise": "example",
"part": "example",
"separator": "example",
"sources": [
"example"
],
"system": "example",
"target": "example",
"to": "example",
"transform": "example",
"value": "example",
"when": {
"op": "example",
"source": "example",
"value": "example"
}
}
]
},
"message": "Example text",
"sample": "example"
}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 '{"id":"example-id","mapping":{"format":"example","namespaces":{"example":"example"},"rules":[{"from":"example","index":1,"map":"example","note":"example","op":"example","otherwise":"example","part":"example","separator":"example","sources":["example"],"system":"example","target":"example","to":"example","transform":"example","value":"example","when":{"op":"example","source":"example","value":"example"}}]},"message":"Example text","sample":"example"}' \
"https://YOUR-CONSOLE-HOST/admin/v1/mappings/preview"Get mapping
GET /admin/v1/mappings/{id}
Needs the permissions: config:history, payload:read.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
code_maps | array of string | optional | - |
code_sets | array of string | optional | - |
editable | any | optional | - |
functions | any | optional | - |
max_rules | any | optional | - |
not_editable | string | optional | - |
parsed | any | optional | - |
samples | any | optional | - |
samples_visible | boolean | optional | - |
script | object (ScriptSummary) | optional | - |
script.active | object (ActiveJSON) | optional | - |
script.description | string | optional | - |
script.draft | object (ScriptCode) | optional | Code is one script version: what runs. |
script.draft_sha256 | string | optional | - |
script.id | string | optional | - |
script.pending | boolean | optional | Pending: the draft differs from the active version. |
script.routes | array of string | optional | - |
script.samples | integer | optional | - |
script.version | integer | optional | - |
{
"code_maps": [
"example"
],
"code_sets": [
"example"
],
"editable": {},
"functions": {},
"max_rules": {},
"not_editable": "example",
"parsed": {},
"samples": {},
"samples_visible": true,
"script": {
"active": {
"activated_at": "2026-01-15T14:30:00Z",
"activated_by": "example",
"code": {
"dialect": "example",
"format": "example",
"kind": "example",
"language": "example",
"limits": {
"memory_mb": 1,
"time_ms": 1
},
"output": "example",
"source": "example"
},
"draft_version": 1,
"samples_passed": 1,
"sha256": "example"
},
"description": "example",
"draft": {
"dialect": "example",
"format": "example",
"kind": "example",
"language": "example",
"limits": {
"memory_mb": 1,
"time_ms": 1
},
"output": "example",
"source": "example"
},
"draft_sha256": "example",
"id": "example-id",
"pending": true,
"routes": [
"example"
],
"samples": 1,
"version": 1
}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/mappings/example-id"Put mapping
PUT /admin/v1/mappings/{id}
Needs the permission: config:write.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
description | string | optional | - |
mapping | object (MappingMapping) | optional | Mapping is a visual mapping: the message format and its rules. |
mapping.format | string | optional | - |
mapping.namespaces | map of string | optional | Namespaces binds the prefixes an xml mapping's paths use ("p" to its namespace URI). An unprefixed name matches that local name in any namespace, so most mappings need none. |
mapping.rules | array of object (MappingRule) | optional | - |
reason | string | optional | - |
sample | object (MappingSampleIn) | optional | - |
sample.message | string | optional | - |
sample.name | string | optional | - |
version | integer | optional | - |
{
"description": "example",
"mapping": {
"format": "example",
"namespaces": {
"example": "example"
},
"rules": [
{
"from": "example",
"index": 1,
"map": "example",
"note": "example",
"op": "example",
"otherwise": "example",
"part": "example",
"separator": "example",
"sources": [
"example"
],
"system": "example",
"target": "example",
"to": "example",
"transform": "example",
"value": "example",
"when": {
"op": "example",
"source": "example",
"value": "example"
}
}
]
},
"reason": "Example text",
"sample": {
"message": "Example text",
"name": "example-name"
},
"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 '{"description":"example","mapping":{"format":"example","namespaces":{"example":"example"},"rules":[{"from":"example","index":1,"map":"example","note":"example","op":"example","otherwise":"example","part":"example","separator":"example","sources":["example"],"system":"example","target":"example","to":"example","transform":"example","value":"example","when":{"op":"example","source":"example","value":"example"}}]},"reason":"Example text","sample":{"message":"Example text","name":"example-name"},"version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/mappings/example-id"Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.