The "updatewelltop" web service updates the name of an individual well top:
A typical URL is http://myserver.mycompany.com:8080/INTGeoServer/api/ds/{datasourcetype}/v1/sources/{datasource}/tops/{topuniqueid} with the PUT method.
where
datasourcetype: type of a datasource, i.e. mongo, s3, etc.
datasource: unique id of a datasource
topuniqueid: a unique id of a well top
The following payload is expected (pass application/json as Content-Type):
{
"name":"testNameBenv2.Edited"
}
name: a well top name
Here is an example response. This response has been formatted to improve readability
{
"from": {
"actor": "akka://DefaultActorSystemControllerActorSystem:FindTopByUniqueIdJsonActor:FindFirstAndLastEntryLogsByEntityListResponse for FindFirstAndLastEntryLogsByEntityRequest:FindFirstAndLastEntryLogsByEntityRequest{klass=AbstractEntryLogFinder, sourceType=mongo, sourceName=c9db3458-6698-49d9-ae8f-f407ce26ae2e, entityUniqueId=30d2fa4f-e54c-4e80-ba8c-4f8b17105d62, entity=top}"
},
"data": {
"id": "30d2fa4f-e54c-4e80-ba8c-4f8b17105d62",
"content": {
"topSetUUID": "36851143-2828-41d7-816b-5679f68bfede",
"wellboreUID": "testWellBoreUniqueIdBenv2",
"name": "testNameBenv2",
"index": 101.0,
"indexUnit": "m",
"interpreter": "testInterpreterv2",
"label": "testLabelv2"
},
"links": [
{
"rel": "self",
"relEntity": "v1/schema/int/top",
"href": "/ivaap/api/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/tops/30d2fa4f-e54c-4e80-ba8c-4f8b17105d62",
"children": false,
"hasProjectEntityChildren": false,
"isProjectEntity": false
}
]
}
}
The id entry is the unique id of an updated well top.
For detailed description of content section see "Well Top Data Web Service (v3)" service.
The links section provides a HATEOAS link to the "Well Top Data Web Service (v3)" service.
If the specified topuniqueid doesn't match a valid well top, 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.