The "updatewelltopset" web service updates the name of an individual well top set:
A typical URL is http://myserver.mycompany.com:8080/INTGeoServer/api/ds/{datasourcetype}/v1/sources/{datasource}/topsets/{topsetuniqueid} with the PUT method.
where
datasourcetype: type of a datasource, i.e. mongo, s3, etc.
datasource: unique id of a datasource
topsetuniqueid: a unique id of a well top set
The following payload is expected (pass application/json as Content-Type):
{
"name":"benRo.Edited"
}
name: a well top set name
Here is an example response. This response has been formatted to improve readability
{
"from": {
"actor": "akka://DefaultActorSystemControllerActorSystem:UpdateTopSetByUniqueIdJsonActor:UpdateTopSetByUniqueIdFetcherResponse for UpdateTopSetByUniqueIdRequest:UpdateTopSetByUniqueIdRequest{klassUpdater=AbstractWellTopSetUpdaterklassFinder=AbstractWellTopSetFinder, sourceType=mongo, sourceName=c9db3458-6698-49d9-ae8f-f407ce26ae2e, uniqueId=36851143-2828-41d7-816b-5679f68bfede, name=benRo.Edited, pathInfo=/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/topsets/36851143-2828-41d7-816b-5679f68bfede}"
},
"data": {
"id": "36851143-2828-41d7-816b-5679f68bfede",
"content": {
"name": "benRo.Edited",
"indexUnit": "m"
},
"links": [
{
"rel": "self",
"relEntity": "v1/schema/int/topset",
"href": "/ivaap/api/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/topsets/36851143-2828-41d7-816b-5679f68bfede",
"children": false,
"hasProjectEntityChildren": false,
"isProjectEntity": false
},
{
"rel": "Top Set",
"relEntity": "v1/schema/int/topset",
"href": "/ivaap/api/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/topsets/36851143-2828-41d7-816b-5679f68bfede",
"children": false,
"hasProjectEntityChildren": false,
"isProjectEntity": true
},
{
"rel": "Top",
"name": "Top",
"relEntity": "v1/schema/int/top",
"href": "/ivaap/api/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/topsets/36851143-2828-41d7-816b-5679f68bfede/tops",
"children": true,
"hasProjectEntityChildren": false,
"isProjectEntity": false
}
]
}
}
The id entry is the unique id of an updated well top set.
For detailed description of content section see "Well Top Set Data Web Service (v3)" service.
The links section provides HATEOAS links to the services supported by this well top set.
If the specified topsetuniqueid doesn't match a valid well top set, no JSON response will be provided. The HTTP response will only show a "InvalidUniqueId" (error 404) in its headers.
The content of this web service is pluggable so that information specific to your data format can be included. To add your own content, extend the com.interactive.ivaapapi.json.AbstractJsonBuilder class.