Pricefx REST API Reference
- Assign a Business Role to a User
The Pricefx Backend API
Set to true to assign the user to the role. Set false to remove the role from the user.
TypedId of the 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.assignrole/{userId}
- URL:https://companynode.pricefx.com/pricefx/companypartition/accountmanager.assignrole/{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.assignrole/{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 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 } }
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