v1
latestOpenAPI 3.0.02026-08-062441107.9 KBDataTypes
Create or update data-type
Create or update data-type. The request must contain all the file types which are to be associated with the data-type. For example, if the data-type was to allow the use of JSON documents then the request would list it as a file specification.
put/data-types/{dataTypeId}
Path parameters
dataTypeIdstring required
The data-type ID.
Headers
slb-data-partition-idstring required
Data partition id.
Request body
Example request
{
"id": "slb:data-types:custom-data-type",
"version": 1,
"name": "custom-data-type",
"description": "Description",
"archived": false,
"fileSpecs": [
{
"extension": "json",
"schemaRef": {
"id": "planning:fdplan:result-set:0.0.1",
"type": "JSON"
},
"defaultFilename": "filename.json"
},
{
"extension": "xlsx"
}
]
}Response
Data-type updated successfully.
Example response
{
"id": "01DV2RPKYS5NYBAR6TNMJ8TNT8",
"name": "custom-data-type",
"version": 1,
"latest": true,
"archived": false,
"description": "Description",
"createdBy": "user@slb.com",
"createdAt": "2020-01-01T00:00:00.000Z",
"fileSpecs": [
{
"extension": "json",
"schemaRef": {
"id": "planning:fdplan:result-set:0.0.1",
"type": "JSON"
},
"defaultFilename": "filename.json"
},
{
"extension": "xlsx"
}
]
}