list_calc_mappings
POST /API/v2/list_calc_mappings
Request body¶
project_name: the name of the project.
Response¶
result: an array of dictionaries with the following format:name: mapping name (used in formulas as a link), unique across each project.author: mapping author username.created: mapping creation date.updated: mapping update date.mapped_key: mapped key name.mappings: an array of dictionaries with the following structure:key: mapping key.value: mapping value.
Example¶
Display the list of all calculation mappings created in the demo project.
Path:
https://uslicer.iponweb.com/API/v2/list_calc_mappings
Request
{
"project_name": "demo",
}
curl --data '{
"project_name": "demo"
}' \
-H "Authorization: Bearer <token>" \
"https://uslicer.iponweb.com/API/v2/list_calc_mappings"
Response
{
"status" : "success",
"result" : [
{
"author" : "test",
"created" : "2018-01-23 16:12:55",
"name" : "test_mapping",
"mapped_key" : "country",
"mappings" : {
"US" : 10,
"NL" : 20,
"" : 56
}
}
]
}