manifest form field of an upload.
Manifest shape
Column fields
Every entry needssourceName, dataType, and isEntity, including ignored columns. Otherwise the API returns 400 with Manifest is not correctly formatted.
true for columns that identify a row, including the date. false for values. Use a JSON boolean, not a string.How column names are matched
destinationNameandignoreapply to the column whose header is the same assourceName. Spaces at the start and end of a header are removed first.- A column with
ignore: truemust be in the file. Otherwise the upload fails. - After renaming, Alphacast matches headers to column names without regard to case, accents, or spaces. For example,
paismatchesPaís.
Entity and value columns
- Entity columns, together with the date, form the key of each row. Typical examples are
Country,Sector, orTicker. - Value columns hold the measurements.
The date column
Use one column withdataType set to Date and isEntity set to true. Write every date in the same format, and match it with dateFormat.
If you leave dateFormat out of a manifest, Alphacast uses %Y-%m-%d.
Extra text after the date, such as a time, is accepted. For example, 2024-01-01 00:00:00 matches %Y-%m-%d. If a date does not match, the upload fails with Date should be formatted as <format>.
Number columns
Alphacast checks the values of each value column that is not declared asString.
- Write decimals with a dot or a comma, such as
1200.5or1200,5. - Do not use thousands separators. A comma can be read as a decimal separator, so
1,200can be stored as1.2. Values such as1,200.50or1.200,50are not read as numbers. - A
%sign at the end of a value is removed. If every row in the column ends with%, the numbers are also divided by 100, so12.5%is stored as0.125. If any row has no%sign, including an empty row, the numbers are not divided. - A column with text values is numeric if more than 80% of its non-empty values can be read as numbers. The other values become empty. Otherwise the whole column is stored as text, and this does not make the upload fail.
String.
Rename and ignore columns
For this file:Saved definitions
When an upload succeeds, Alphacast saves the manifest you sent with the dataset.Next steps
Validation and upload modes
What can make an upload fail.
Upload API reference
Parameters and examples.