v1
latestOpenAPI 3.0.02026-08-062441107.9 KBWorkflowSpecs
Update a workflow specification
Update a workflow specification. It is only possible to update the "name", "description", "archived", "computationSpecs", "edges" and "annotations" fields of the workflow specification.
patch/workflow-specs/{workflowSpecId}
Path parameters
workflowSpecIdstring required
The workflow 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
Workflow specification updated successfully.
Example response
{
"id": "01DV2RPKYS5NYBAR6TNMJ8TNT8",
"name": "custom-workflow-spec",
"version": 1,
"latest": true,
"archived": false,
"description": "Description",
"createdBy": "user@slb.com",
"createdAt": "2020-01-01T00:00:00.000Z",
"computationSpecs": [
{
"id": "ix",
"name": "ix",
"version": 1,
"latest": true,
"archived": false,
"description": "A specification.",
"createdBy": "system",
"createdAt": "2020-01-01T00:00:00.000Z",
"address": {
"type": "Computation",
"computationIndex": 0,
"dataTypeIndex": 0
},
"inputDataTypeIds": [
{
"id": "decline-curves",
"version": 1,
"address": [
{
"computationIndex": 0,
"dataTypeIndex": 0,
"type": "DataTypeInput"
}
]
},
{
"id": "drilling-constraints",
"version": 1,
"address": [
{
"computationIndex": 0,
"dataTypeIndex": 1,
"type": "DataTypeInput"
}
]
},
{
"id": "facility-constraints",
"version": 1,
"address": [
{
"computationIndex": 0,
"dataTypeIndex": 2,
"type": "DataTypeInput"
}
]
}
],
"outputDataTypeIds": [
{
"id": "production-forecast",
"version": 1,
"address": {
"type": "DataTypeOutput",
"computationIndex": 0,
"dataTypeIndex": 0
}
}
]
},
{
"id": "peep",
"name": "peep",
"version": 1,
"latest": true,
"archived": false,
"description": "A specification.",
"createdBy": "system",
"createdAt": "2020-01-01T00:00:00.000Z",
"address": {
"type": "Computation",
"computationIndex": 0,
"dataTypeIndex": 0
},
"inputDataTypeIds": [
{
"id": "production-forecast",
"version": 1,
"address": [
{
"computationIndex": 1,
"dataTypeIndex": 0,
"type": "DataTypeInput"
}
]
},
{
"id": "well-capex",
"version": 1,
"address": [
{
"computationIndex": 1,
"dataTypeIndex": 1,
"type": "DataTypeInput"
}
]
},
{
"id": "general-capex",
"version": 1,
"address": [
{
"computationIndex": 1,
"dataTypeIndex": 2,
"type": "DataTypeInput"
}
]
},
{
"id": "general-opex",
"version": 1,
"address": [
{
"computationIndex": 1,
"dataTypeIndex": 3,
"type": "DataTypeInput"
}
]
},
{
"id": "economic-framework",
"version": 1,
"address": [
{
"computationIndex": 1,
"dataTypeIndex": 4,
"type": "DataTypeInput"
}
]
}
],
"outputDataTypeIds": [
{
"id": "peep-output",
"version": 1,
"address": {
"type": "DataTypeOutput",
"computationIndex": 1,
"dataTypeIndex": 0
}
}
]
}
],
"edges": [
{
"fromAddressType": "DataTypeOutput",
"fromComputationIndex": 0,
"fromDataTypeIndex": 0,
"toComputationIndex": 1,
"toDataTypeIndex": 0
}
]
}