Pricefx REST API Reference
- Update a Data Manager Entity
The Pricefx Backend API
Request
Retrieves the object's (Data Feed, Data Source, Datamart) row level data and skips the count() query - it does not return a total number of rows in the entire table when the filter is applied, it returns just the total number of rows in the response.
Information: Use this endpoint when you need a better performance when fetching large data sets and when you do not need to fetch a total number of items in the table. Usually used for integration purposes.
Use one of the following object identifiers:
- typedUniquename – Format: "<typeCode>.<uniqueName>" (e.g., DMDS.SalesTransactions)
- typedId – Format: "<dbId>.<typeCode>" (e.g., 123456.DMDS)
- "*" (asterisk) – Asterisk can be used when you are providing a source$query in
datawithin the request body
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/datamart.fetchnocount/{objectId}
- URL:https://companynode.pricefx.com/pricefx/companypartition/datamart.fetchnocount/{objectId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
'https://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/datamart.fetchnocount/{objectId}' \
-H 'Content-Type: application/json' \
-d '{
"endRow": 300,
"oldValues": null,
"operationType": "fetch",
"startRow": 0,
"textMatchStyle": "exact",
"data": {
"_constructor": "AdvancedCriteria",
"operator": "and",
"criteria": [
{
"fieldName": "attribute4",
"operator": "iEquals",
"value": "EUR"
}
]
}
}'{ "response": { "node": "string", "csrfToken": "string", "startRow": 0, "data": [ … ], "endRow": 0, "totalRows": 0, "status": 0 } }
Request
Updates and deploys a field collection (FC) definition - Data Feed (DMF), Datamart (DM), or Data Source (DMDS).
Information: If Data Source (DMDS) is added or updated, then a Data Feed (DMF) is created for the corresponding Data Source.
Either uniqueName or typedId must be provided in the request.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/datamart.updatefc/{TypeCode}
- URL:https://companynode.pricefx.com/pricefx/companypartition/datamart.updatefc/{TypeCode}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/datamart.updatefc/DM \
-H 'Content-Type: application/json' \
-d '{
"operationType": "update",
"data": {
"version": 4,
"typedId": "2147483684.DMF",
"uniqueName": "Meatball_transaction",
"label": "Meatball_transaction",
"sourceFile": null,
"fields": [
{
"name": "attribute1",
"label": "InvoiceDate",
"labelTranslations": {},
"rank": 1,
"format": null,
"measureType": null,
"functionalType": null,
"visibility": 1,
"defaultValue": null,
"sourceField": null,
"expression": "attribute1",
"function": null,
"formulaElement": null,
"messages": null,
"key": false,
"system": false,
"numeric": false,
"deleted": false,
"persisted": true,
"dimension": false,
"calculated": false,
"dbColumn": "attribute1",
"aggregation": false,
"time": false,
"partitioningKey": false,
"queryable": true,
"auxiliary": false,
"deployed": true,
"dbTable": "seeddata_DMF_Meatball_transaction",
"type": "TEXT",
"source": "DMF.Meatball_transaction",
"owningFC": "Meatball_transaction",
"hidden": false
},
{
"name": "completeResultsAvailable",
"label": "Details",
"labelTranslations": {},
"rank": 36,
"format": null,
"measureType": null,
"functionalType": null,
"visibility": 0,
"defaultValue": null,
"sourceField": null,
"expression": "NOT ISNULL(formulaDetailedResults)",
"function": null,
"formulaElement": null,
"messages": null,
"key": false,
"system": true,
"numeric": false,
"deleted": false,
"persisted": false,
"dimension": false,
"calculated": true,
"dbColumn": "attribute1",
"aggregation": false,
"time": false,
"partitioningKey": false,
"queryable": true,
"auxiliary": true,
"deployed": false,
"dbTable": "seeddata_DMF_Meatball_transaction",
"type": "BOOLEAN",
"source": "DMF.Meatball_transaction",
"owningFC": "[System]",
"hidden": true
}
],
"keyFields": [],
"formulaName": null,
"reload": false,
"messages": null,
"reservedWords": null,
"rowCount": null,
"lastUpdateByName": "ondrej.tesar",
"defaultDataSourceName": "DMDS.Meatball_transaction",
"lineSeperator": null,
"fieldSeperator": null,
"quoteChar": null,
"fetchVerb": "datamart.fetch/2147483684.DMF",
"integrateVerb": null,
"bulkloadVerb": "datamart.loaddata/Meatball_transaction",
"identikitCriteria": null,
"draft": false,
"queryable": true,
"view": false,
"sourceName": "DMF.Meatball_transaction",
"type": "FEED",
"valid": true,
"status": null,
"targetDate": null,
"calculationMessages": null,
"loadableFields": [
"attribute1",
"attribute2",
"attribute3",
"attribute4",
"attribute5",
"attribute6",
"attribute7",
"attribute8",
"attribute9",
"attribute10",
"attribute11",
"attribute12",
"attribute13",
"attribute14",
"attribute15",
"attribute16",
"attribute17",
"attribute18",
"attribute19",
"attribute20",
"attribute21",
"attribute22",
"attribute23",
"attribute24",
"attribute25",
"attribute26",
"attribute27"
],
"auxiliary": false,
"deployed": true,
"dbTable": "seeddata_DMF_Meatball_transaction",
"dbKey": "",
"dbView": null,
"locked": false,
"createDate": "2018-10-04T17:09:00",
"createdBy": 2147483649,
"lastUpdateDate": "2021-12-03T13:34:00",
"lastUpdateBy": 2147490187,
"query": null,
"lastDataModificationDate": "2021-12-02T00:09:03",
"typeCode": null,
"isPlasma": false,
"calculationStartDate": null,
"calculationDate": null
}
}'{ "response": { "node": "node", "csrfToken": "tkn", "data": [ … ], "endRow": 1, "status": 0 } }
Request
Creates a field collection (FC) definition - Data Feed (DMF), Datamart (DM), or Data Source (DMDS).
Either uniqueName or typedId must be provided in the request.
The name of the field collection. Special characters are not allowed, except the underscore ("_").
Fully qualified name of the domain class whose persisted objects the Data Source is based on.
Label of the source master object or template from which the Data Source was created.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/datamart.newfc/{TypeCode}
- URL:https://companynode.pricefx.com/pricefx/companypartition/datamart.newfc/{TypeCode}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/datamart.newfc/DM \
-H 'Content-Type: application/json' \
-d '{
"data": {
"uniqueName": "DataSource01",
"label": "Data Source 1"
}
}'{ "response": { "node": "node", "csrfToken": "tkn", "data": [ … ], "endRow": 1, "status": 0 } }
See the Key-Value Database Storage Knowledge Base article for more details.
Here you can find all fields of the corresponding entity (represented by the type code).
Use the /metadata.describe endpoint to find out the correct data type of the field that is used in your partition.
Comments