Pricefx REST API Reference
- Assign a Business Role
The Pricefx Backend API
Set to true to assign the business role to the user. Set false to remove the business role from the user.
TypedId of the business role you want to assign or revoke. Either typedId or uniqeName is required.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/accountmanager.assignbusinessrole/{userId}
- URL:https://companynode.pricefx.com/pricefx/companypartition/accountmanager.assignbusinessrole/{userId}
- 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/accountmanager.assignbusinessrole/{userId}' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"assign": true,
"typedId": "8.R",
"uniqueName": "DASHBOARDADMIN",
"users": [
"2147491023.U",
"john.doe"
]
}
}'{ "response": { "node": "string", "data": null, "status": 0 } }
Set to true to assign the user to the business role. Set false to remove the business role from the user.
TypedId of the business role you want to assign or revoke. Either typedId or uniqeName is required.
uniqueName of the business role you want to assign or revoke. Either typedId or uniqeName is required.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/accountmanager.assignbusinessrole
- URL:https://companynode.pricefx.com/pricefx/companypartition/accountmanager.assignbusinessrole
- 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/accountmanager.assignbusinessrole \
-H 'Content-Type: application/json' \
-d '{
"data": {
"assign": true,
"typedId": "8.R",
"uniqueName": "DASHBOARDADMIN",
"users": [
"2147491023.U",
"john.doe"
]
}
}'{ "response": { "node": "string", "data": null, "status": 0 } }
Request
Deletes a User Group. The general datasource /delete operation should NOT be used for the User Group object as this special command (/accountmanager.deletegroup) also performs a cleanup of related objects (objects that have this business role assigned).
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/accountmanager.deletegroup
- URL:https://companynode.pricefx.com/pricefx/companypartition/accountmanager.deletegroup
- 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/accountmanager.deletegroup \
-H 'Content-Type: application/json' \
-d '{
"data": {
"typedId": "15667.UG"
}
}'{ "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