Forum Discussion
FICO
3 years agoCommunity Manager
How to use REST API 4 to modify an entity value
I'm looking at the following documentation from FICO on modifying an entity value in a scenario but doesn't under what "dimension" mentions in this context. Could you provide an example of what it is...
FICO
3 years agoCommunity Manager
Chang,
The dimension refers to the entity dimension which you can find more information about here: https://www.fico.com/fico-xpress-optimization/docs/latest/insight_dev_guide/GUID-BCA42913-8334-46E3-96BB-75A5F15282DB.html
However, you are most likely wanting to modify the data value of the scalar which is dimension 0 and is the default (so you can leave off dimension entirely). To do this you can PUT to /v1/data/scenario/{id}/data/entity/{scalarName} with the body of the request containing the value you want to set the entity to.
Included with insight is an example of interacting with the REST API, written in javascript. You can find it in: [xpress_installation_directory]\examples\insight\rest_api\rest-client-example. There is no usage of this specific endpoint but it might help in general use of the REST API.
Regards,
Ian
Related Content
Related Content
How to access updated entity value in a JavaScript function?
I have written JS code to check on whether a user entered value is already in an index or not. However, I'm having a hard time passing in the modified entity value into the JS function. It seems the ...3 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum4 unread comments4 unread0Views0likes4CommentsHow to sort vdl-chart sort x-axis by entity values?
VDL v7 added the nice set-sorter, but seems to have made the default sorting a bit inconsistent. VDL-table sorts by entity values by default, but VDL-chart seems to do a random sort (at first thought...6 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum5 unread comments5 unread1View0likes5Comments
