Update a data-type. It is only possible to update the "name", "description", "archived", and "fileSpecs" fields of the data-type.
Security
bearer and appkey
The patches to apply to the data-type. Only "replace" operations are supported. It is only possible to update the "name", "description", "archived" and "fileSpecs" fields of the data-type.
- https://api.delfi.slb.com/fdplan/evaluation/v1https://api.delfi.slb.com/fdplan/evaluation/v1/data-types/{dataTypeId}
- Mock serverhttps://developer.slb.com/_mock/solutions/fdplan/apis/fdplan-evaluation/data-types/{dataTypeId}
curl -i -X PATCH \
'https://api.delfi.slb.com/fdplan/evaluation/v1/data-types/{dataTypeId}' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-H 'appkey: YOUR_API_KEY_HERE' \
-H 'slb-partition-id: string' \
-d '[
{
"op": "replace",
"path": "description",
"value": "Description"
},
{
"op": "replace",
"path": "archived",
"value": false
}
]'Data-type updated successfully.
The date the specification was created.
Example:"2020-01-01T00:00:00.000Z"
fileSpecsArray of objects(FileSpec)
Specification of the file types allowed to be used with this container.
Example:
[ { "extension": "xlsx" }, { "extension": "json", "schemaRef": { … }, "defaultFilename": "filename.json" } ]
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": [ { … }, { … } ] }