- FDPlan
- Update a scenario
Applies partial updates to an existing scenario using JSON-Patch replace operations. The title, description, displayID, colour, and isSelected fields can be updated; set isSelected to feature a scenario above the others in the same study.
The patches to apply to the scenario. Only "replace" operation is supported.
- https://api.delfi.slb.com/fdplan/studieshttps://api.delfi.slb.com/fdplan/studies/v1/scenarios
- Mock serverhttps://developer.slb.com/_mock/solutions/fdplan/apis/fdplan-studies/v1/scenarios
curl -i -X PATCH \
'https://api.delfi.slb.com/fdplan/studies/v1/scenarios?studyId=string&scenarioId=string' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-H 'appkey: YOUR_API_KEY_HERE' \
-H 'slb-partition-id: string' \
-d '[
{
"op": "replace",
"path": "title",
"value": "title"
},
{
"op": "replace",
"path": "description",
"value": "description"
}
]'Scenario updated successfully.
The ID of the ensemble that manages all the realizations associated with the scenario.
The description of this scenario.
Details of the last update to a resource.
{ "atDate": "2020-09-08T09:53:36.000Z", "byEvent": "01EHPJ54HEA77K95T5KPH5JSW9", "byUser": "user@slb.com" }
Details about the creation of a resource.
{ "atDate": "2020-09-08T09:53:36.000Z", "byEvent": "01EHPJ54HEA77K95T5KPH5JSW9", "byUser": "user@slb.com" }
A scenario is marked as selected when it has been featured above other scenarios in the same study by a user.
The collection of the scenario's decisions.
[ { "id": "01CP3E6EJJ25J29YHZ0K4RDZH8", "title": "A development decision" } ]
The colour of this scenario represented as a HTML hex value (e.g. "#ffa71a").
The development concept id which is associated with this scenario.
{ "id": "01CP3E6EJJ25J29YHZ0K4RDZH8", "displayID": "S1", "title": "Minimal investment", "description": "Minimal investment development option scenario.", "lastUpdated": { "atDate": "2020-09-08T09:53:36.000Z", "byEvent": "01EHPJ54HEA77K95T5KPH5JSW9", "byUser": "user@slb.com" }, "created": { "atDate": "2020-09-08T09:53:36.000Z", "byEvent": "01EHPJ54HEA77K95T5KPH5JSW9", "byUser": "user@slb.com" }, "isSelected": false, "colour": "#ff0000", "version": 2, "associatedDevelopmentConceptId": "01CP3E6EJJ25J29YHZ0K4ANIH8", "associatedOpportunityIDs": [ "01CP3E6EJJ25J29YHZ0K4ANABC", "01CP3E6EJJ25J29YHZ0K4ANDEF" ] }