ComputationSpecs

Update computation specification

Changed on

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}

Request

  • Base URL
    https://api.delfi.slb.com/fdplan/evaluation/v1
  • Auth
    API key in header Authorization and API key in header appkey

Path parameters

computationSpecIdstring required

The computation specification ID.

Headers

slb-partition-idstring required

Data partition id.

Request body

op'replace' | 'add' | 'remove' required

The operation to be performed.

pathstring required

A JSON-Pointer.

valuestring

The value to be used within the operations.

fromstring

A string containing a JSON Pointer value.

Example request

[
  {
    "op": "replace",
    "path": "description",
    "value": "Description"
  },
  {
    "op": "replace",
    "path": "archived",
    "value": false
  }
]

Response

Computation specification updated successfully.

idstring required

The ID of the specification.

namestring required

The name of the specification.

versioninteger required

The version of the specification definition.

latestboolean required

Whether this is the latest version of the given specification.

archivedboolean required

Whether this specification has been marked as archived.

descriptionstring required

The description of the specification.

createdBystring required

The ID of the user who created the specification.

createdAtstring date-time required

The date the specification was created.

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"
    }
  ]
}

Changes

    • breaking

      added the new required header request parameter slb-partition-id

    • breaking

      the / request property type changed from object to no type

    • warning

      deleted the header request parameter slb-data-partition-id

    • warning

      added the new Workflow enum value to the //// response property for the response status