Pricefx REST API Reference
The Pricefx Backend API
Request
Checks delegation for conflicts. Always use this operation before /workflowdelegationmanager.add to prevent invalid date conflicts in the new delegation. Use the same payload as for the /workflowdelegationmanager.add operation.
The name of the user whose workflow you want to delegate.
The name of the user you want to delegate a workflow to.
The date from which the workflow delegation should come into effect.
The date until which the workflow delegation should be effective.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/workflowdelegationmanager.checkdates
- URL:https://companynode.pricefx.com/pricefx/companypartition/workflowdelegationmanager.checkdates
- 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/workflowdelegationmanager.checkdates \
-H 'Content-Type: application/json' \
-d '{
"data": {
"sourceUser": "John Doe",
"targetUser": "Kate Smith",
"startDate": "2021-11-23T08:19:13.941Z",
"endDate": "2021-11-23T08:19:21.940Z",
"note": "Please, check all new quotes. I'\''m on vacation.",
"sourceUserId": "2147490806",
"targetUserId": "2147490696"
}
}'{ "response": { "node": "string", "data": null, "status": 0 } }
Request
Deletes a delegation and returns the deleted delegation details.
A delegation where
status=ACTIVATEDcannot be deleted. Only delegations that have not been activated yet (startDateis in the future) can be deleted. Use the /workflowdelegationmanager.enddate endpoint to terminate an activated workflow delegation.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/workflowdelegationmanager.delete
- URL:https://companynode.pricefx.com/pricefx/companypartition/workflowdelegationmanager.delete
- 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/workflowdelegationmanager.delete \
-H 'Content-Type: application/json' \
-d '{
"data": {
"typedId": "12.WD"
}
}'{ "response": { "node": "string", "data": [ … ], "status": 0 } }
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/workflowdelegationmanager.update
- URL:https://companynode.pricefx.com/pricefx/companypartition/workflowdelegationmanager.update
- 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/workflowdelegationmanager.update \
-H 'Content-Type: application/json' \
-d '{
"data": {
"typedId": "12.WD",
"note": "Please, check approvals. I'\''m on vacation until Thursday."
}
}'{ "response": { "node": "string", "csrfToken": "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