Create a computation specification. The create request must contain all the input and output data-type IDs which are used to define the computation specification. These data-types must have previously been created. As an example, a computation specification could be defined as a specification for a compute which takes two pieces of input data and calculates a single piece of output data. The specification for this compute would take two input data-types and output a single output data-type. The order of the input and output data-type IDs provided in the creation of the computation specification is maintained in the created computation specification and may only be changed through performing PATCH operations on the computation specification.
The computation specification to be created.
The optional id of the specification. The id should be of the form '{authority}:{spec-type}:{id}', where '{authority}' is the owning authority of the specification, '{spec-type}' is one of 'data-types', 'computation-specs' or 'workflow-specs'.
The input data-type IDs for the computation specification. These data-types must have already been previously created. The order of the input data-type IDs is maintained in the created computation specification. Note that specific versions of a data-type can be specified by using the format 'id:version'.
[ "decline-curves", "drilling-constraints", "facility-constraints\"" ]
The output data-type IDs for the computation specification. These data-types must have already been previously created. The order of the output data-type IDs is maintained in the created computation specification. Note that specific versions of a data-type can be specified by using the format 'id:version'.
[ "production-forecast" ]
The annotations for the computation specification.
[ { "address": { … }, "key": "name", "value": "Decline Curves", "createdBy": "user@slb.com" }, { "address": { … }, "key": "name", "value": "Drilling Constraints", "createdBy": "user@slb.com" }, { "address": { … }, "key": "name", "value": "Facility Constraints", "createdBy": "user@slb.com" }, { "address": { … }, "key": "name", "value": "Production Forecast", "createdBy": "user@slb.com" } ]
- https://api.delfi.slb.com/fdplan/evaluation/v1https://api.delfi.slb.com/fdplan/evaluation/v1/computation-specs
- Mock serverhttps://developer.slb.com/_mock/solutions/fdplan/apis/fdplan-evaluation/computation-specs
curl -i -X POST \
https://api.delfi.slb.com/fdplan/evaluation/v1/computation-specs \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-H 'appkey: YOUR_API_KEY_HERE' \
-H 'slb-partition-id: string' \
-d '{
"id": "slb:computation-specs:custom-computation-spec",
"name": "custom-computation-spec",
"description": "Description",
"inputDataTypeIds": [
"decline-curves",
"drilling-constraints",
"facility-constraints"
],
"outputDataTypeIds": [
"production-forecast"
],
"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"
}
]
}'Computation specification created successfully.
The date the specification was created.
The input data-type IDs for the computation specification.
[ { "id": "decline-curves", "version": 1 }, { "id": "drilling-constraints", "version": 1 }, { "id": "facility-constraints", "version": 1 } ]
The output data-type IDs for the computation specification.
[ { "id": "production-forecast", "version": 1 } ]
The annotations for the computation specification. These annotations can be used to annotate the computation specification with useful information such as a 'name'.
[ { "address": { … }, "key": "name", "value": "Decline Curves", "createdBy": "user@slb.com" }, { "address": { … }, "key": "name", "value": "Drilling Constraints", "createdBy": "user@slb.com" }, { "address": { … }, "key": "name", "value": "Facility Constraints", "createdBy": "user@slb.com" }, { "address": { … }, "key": "name", "value": "Production Forecast", "createdBy": "user@slb.com" } ]
{ "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": [ { … }, { … }, { … } ], "outputDataTypeIds": [ { … } ], "annotations": [ { … }, { … }, { … }, { … } ] }