Skip to main content

Create Datamap

Creates a new Datamap in Promethium based on a SQL definition and optional metadata. Datamaps can be virtualized as views or materialized as physical tables.


Endpoint​

POST https://api.prod.promethium.ai/datamap/create

Headers​

Header NameValueRequiredDescription
Content-Typeapplication/json✅Specifies the format of the request body
idtoken<authentication_id_token>✅Bearer token obtained via authenticated login

Request Body​

{
"name": str,
"description": "str",
"tags": str[],
"owner": str,
"sme": str,
"requestor": str,
"custom_attr": {
"product_type": str,
"product_line": str,
"datamap_type": str,
"version": str,
"alias": str,
"concept_name": str,
"context": str,
"expected_date": int, -- epoch timestamp
"review_date": int, -- epoch timestamp
"priority": int,
"value": float
},
"sql": str
}

Fields​

FieldTypeRequiredDescription
namestring✅Name of the Datamap
descriptionstring❌Description of the Datamap’s purpose or content
tagsstring[]❌Array of tags for filtering and search
ownerstring❌Primary owner of the Datamap
smestring❌Subject Matter Expert for the Datamap
requestorstring❌User who requested the Datamap’s creation
custom_attrobject❌Additional business metadata (see nested fields below)
custom_attr.product_typestring❌Type of product represented (e.g., subscription, physical, digital)
custom_attr.product_linestring❌Product line or business unit
custom_attr.datamap_typestring❌Classification of Datamap (e.g., source, derived, aggregate)
custom_attr.versionstring❌Version number of the Datamap
custom_attr.aliasstring❌Short alias or alternate name for the Datamap
custom_attr.concept_namestring❌Conceptual term or business definition associated with this Datamap
custom_attr.contextstring❌Description of usage context (e.g., "monthly snapshot")
custom_attr.expected_dateinteger❌Expected data availability date (epoch timestamp)
custom_attr.review_dateinteger❌Date this Datamap should be reviewed (epoch timestamp)
custom_attr.priorityinteger❌Priority level (e.g., 1 = highest, 5 = lowest)
custom_attr.valuefloat❌Business value or impact score (can be any numeric value)
sqlstring✅SQL query that defines the Datamap