Publish a channel-mapping lens (remap native → canonical)
POST
/v1/datasets/{dataset_id}/mapping-lens
const url = 'https://example.com/v1/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/mapping-lens';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"renames":{"additionalProperty":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/mapping-lens \ --header 'Content-Type: application/json' \ --data '{ "renames": { "additionalProperty": "example" } }'Human remap for channels the automatic grammar mis-identified or could not identify. The canonical interface and resolver refresh on the next read.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” dataset_id
required
string format: uuid
Query Parameters
Section titled “Query Parameters ” account_id
Act on this account (active)
string | null format: uuid
Act on this account (active)
Header Parameters
Section titled “Header Parameters ” x-api-key
string | null
Request Body required
Section titled “Request Body required ” Media type application/json
PublishMappingLensBody
object
renames
required
object
key
additional properties
string
Example generated
{ "renames": { "additionalProperty": "example" }}Responses
Section titled “ Responses ”Successful Response
Media type application/json
Example generated
exampleValidation Error
Media type application/json
HTTPValidationError
object
detail
Array<object>
ValidationErrorobject
loc
required
Location
Array<string | integer>
msg
required
Message
string
type
required
Error Type
string
input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}