v1
latestOpenAPI 3.0.02026-08-062441107.9 KBComputationSpecs
Update computation specification
Update computation specification. It is only possible to update the "name", "description", "archived", "inputDataTypeIds", "outputDataTypeIds" and "annotations" fields of the computation specification.
patch/computation-specs/{computationSpecId}
Path parameters
computationSpecIdstring required
The computation specification ID.
Headers
slb-data-partition-idstring required
Data partition id.
Request body
Example request
[
{
"op": "replace",
"path": "description",
"value": "Description"
},
{
"op": "replace",
"path": "archived",
"value": false
}
]Response
Computation specification updated successfully.
Example response
{
"id": "01DV2RPKYS5NYBAR6TNMJ8TNT8",
"name": "custom-computation-spec",
"version": 1,
"latest": true,
"archived": false,
"description": "Description",
"createdBy": "user@slb.com",
"createdAt": "2020-01-01T00:00:00.000Z",
"inputDataTypeIds": [
{
"id": "decline-curves",
"version": 1
},
{
"id": "drilling-constraints",
"version": 1
},
{
"id": "facility-constraints",
"version": 1
}
],
"outputDataTypeIds": [
{
"id": "production-forecast",
"version": 1
}
],
"annotations": [
{
"address": {
"type": "DataTypeInput",
"computationIndex": 0,
"dataTypeIndex": 0
},
"key": "name",
"value": "Decline Curves",
"createdBy": "user@slb.com"
},
{
"address": {
"type": "DataTypeInput",
"computationIndex": 0,
"dataTypeIndex": 1
},
"key": "name",
"value": "Drilling Constraints",
"createdBy": "user@slb.com"
},
{
"address": {
"type": "DataTypeInput",
"computationIndex": 0,
"dataTypeIndex": 2
},
"key": "name",
"value": "Facility Constraints",
"createdBy": "user@slb.com"
},
{
"address": {
"type": "DataTypeOutput",
"computationIndex": 0,
"dataTypeIndex": 0
},
"key": "name",
"value": "Production Forecast",
"createdBy": "user@slb.com"
}
]
}