Update dataset
PUT/api/management/config
Update the current dataset configuration.
Request
- application/json
Bodyrequired
object
Responses
- 200
- 403
- application/json
- Schema
- Example (auto)
Schema
identifierstringrequired
Example:
44d1f3d6-f65d-4a7c-84db-f92ba826305e
details objectrequired
dataset object[]required
{
"identifier": "44d1f3d6-f65d-4a7c-84db-f92ba826305e",
"details": {
"datasets": [
{
"id": "dataset-123",
"name": "Example Dataset"
}
],
"dataplaneType": "exampleType",
"endpointPrefix": "/api/v1/dataplane",
"callbackAddress": "http://localhost/callback",
"managementAddress": "http://localhost/manage",
"managementToken": "token123",
"catalogSynchronization": "push",
"role": "consumer",
"identifier": "dp-12345"
},
"dataset": [
{
"@id": "3f2592da-ffc9-40cb-a336-a9daa9343ce8",
"dcat:contactPoint": "contactPointExample",
"dcat:keyword": [
"keyword1",
"keyword2"
],
"dcat:landingPage": "landingPageExample",
"dcat:theme": [
"theme1",
"theme2"
],
"dcat:conformsTo": "conformsToExample",
"dct:creator": "creatorExample",
"dct:description": [
"description1",
"description2"
],
"dct:identifier": "identifierExample",
"dct:isReferencedBy": "isReferencedByExample",
"dct:issued": "2020-01-01",
"dct:language": "en",
"dct:license": "licenseExample",
"dct:modified": "2020-01-02",
"dct:publisher": "publisherExample",
"dct:relation": "relationExample",
"dct:title": "titleExample",
"dct:type": "typeExample",
"odrl:hasPolicy": [],
"dcat:hasVersion": [
"version1",
"version2"
],
"dcat:isVersionOf": "isVersionOfExample",
"dcat:version": "versionExample",
"dcat:hasCurrentVersion": "hasCurrentVersionExample",
"dcat:previousVersion": "previousVersionExample",
"@type": "dcat:Dataset",
"dcat:distribution": [
"string"
],
"dcat:spatialResolutionInMeters": "100",
"dcat:temporalResolution": "P1Y",
"dct:accrualPeriodicity": "accrualPeriodicityExample",
"dct:spatial": "spatialExample",
"dct:temporal": "temporalExample",
"prov:wasGeneratedBy": "wasGeneratedByExample"
}
]
}
Forbidden
- application/json
- Schema
- Example (auto)
Schema
namestringrequired
Example:
ResourceNotFound
statusstringrequired
Example:
404 Not Found
codenumberrequired
Example:
404
messageobject
Example:
The requested resource does not exist.
errorstring
Example:
Not Found
{
"name": "ResourceNotFound",
"status": "404 Not Found",
"code": 404,
"message": "The requested resource does not exist.",
"error": "Not Found"
}
Authorization: oauth2
name: oauth2type: oauth2scopes:controlplane_dataplane
flows: { "password": { "scopes": { "httpdataplane_admin": "httpdataplane_admin", "httpdataplane_dataplane": "httpdataplane_dataplane" } } }
- curl
- http
- CURL
curl -L -X PUT 'https://tsg.dataspac.es/api/management/config' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>'