Pricefx REST API Reference
- Create a Data Manager Entity
The Pricefx Backend API
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 } }
Request
Uploads a chunk (batch) of data from a client resource to the storage reserved for a particular Data Source.
The uploaded data is not immediately transfered to the Data Source database table. Instead it is held (‘buffered’) in a staging area, until an explicit flush command is issued (refer to the /datamart.rundataload endpoint, "type": "DS_FLUSH"), or a Datamart dependent on the Data Source data is refreshed.
Specify header field names (table columns) of the record in the target Data Source.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/datamart.loaddata/{datasourceUniqueName}
- URL:https://companynode.pricefx.com/pricefx/companypartition/datamart.loaddata/{datasourceUniqueName}
- 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.loaddata/{datasourceUniqueName}' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"header": [
"sku",
"label",
"attribute1",
"attribute2"
],
"options": {
"detectJoinFields": true
},
"data": [
[
"11111",
"Label One",
"EA",
"USD"
],
[
"22222",
"Label Two",
"EA",
"EUR"
],
[
"33333",
"Label Three",
"EA",
"CZK"
]
]
}
}'{ "response": { "node": "string", "data": [ … ], "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