Skip to content

Create new data source type.

Request

Create new data source type.

Security
bearer and appkey
Headers
slb-partition-idstringrequired

Data partition id.

Bodyapplication/jsonrequired

The data source type that needs to be created.

sourceobject(Source)required

The user-facing input format - a registered data type and the store it lives in. Together with target, it selects the matching data source type.

Example:
{ "store": "fdplan", "type": "production-forecast-fdplan-workbook" }
targetsArray of stringsrequired

List of Data Types.

Example:
[ "production-forecast" ]
editorsArray of objects or null(Editor)

List of editors defining how data source type is provided.

viewersArray of objects or null(Viewer)

List of viewers defining how data source type is viewed.

transformationProviderobject(TransformationProvider)

Transformation provider defines which provider is used to process the data.

copyProviderobject(CopyProvider)

Copy provider defines which provider copies the data sources of this data source type. Defaults to system (FDPlan copies internally); set a custom name to delegate copying to an external worker, which then handles copy_transformation_required events. Data source types in the fdplan store can only be processed by the system worker and are not allowed to have a custom copy provider.

curl -i -X POST \
  https://api.delfi.slb.com/fdplan/data-sources/v2/data-source-types \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -H 'appkey: YOUR_API_KEY_HERE' \
  -H 'slb-partition-id: string' \
  -d '{
    "source": {
      "store": "fdplan",
      "type": "production-forecast-fdplan-workbook"
    },
    "targets": [
      "production-forecast"
    ]
  }'

Responses

Data source type created successfully.

Bodyapplication/json
idstring

Deterministic identifier of the data source type, derived as source.type:source.store.

Example:"demo:data-types:planning-assumption-reference:comm-store"
sourceobject(Source)required

The user-facing input format - a registered data type and the store it lives in. Together with target, it selects the matching data source type.

Example:
{ "store": "fdplan", "type": "production-forecast-fdplan-workbook" }
targetsArray of stringsrequired

List of evaluation data types that this source can be converted into.

Example:
[ "production-forecast" ]
editorsArray of objects or null(Editor)

List of editors defining how data source type is provided.

Example:
[ { "editorURL": "", "name": "fdplan-file-selector", "type": "Both" } ]
viewersArray of objects or null(Viewer)

List of viewers defining how data source type is viewed.

Example:
[]
transformationProviderobject(TransformationProvider)

Transformation provider defines which provider is used to process the data.

Example:
{ "name": "system" }
copyProviderobject(CopyProvider)

Copy provider defines which provider copies the data sources of this data source type. Defaults to system (FDPlan copies internally); set a custom name to delegate copying to an external worker, which then handles copy_transformation_required events. Data source types in the fdplan store can only be processed by the system worker and are not allowed to have a custom copy provider.

Example:
{ "name": "system" }
isSystemboolean

true for built-in types shipped with the platform.

Example:true
archivedboolean

true once the type is retired and should no longer be used to create new data sources.

Response
{ "id": "production-forecast-fdplan-workbook:fdplan", "editors": [ { … } ], "isSystem": true, "source": { "store": "fdplan", "type": "production-forecast-fdplan-workbook" }, "targets": [ "production-forecast" ], "copyProvider": { "name": "system" }, "transformationProvider": { "name": "system" }, "viewers": [] }