The "update well" web service updates the name an individual well:
A typical URL is http://myserver.mycompany.com:8080/INTGeoServer/api/ds/{datasourcetype}/v1/sources/{datasource}/wells/{welluniqueid} with the PUT method.
where
datasourcetype: type of a datasource, i.e. mongo, s3, etc.
datasource: unique id of a datasource
welluniqueid: a unique id of a well
The following payload is expected (pass application/json as Content-Type):
{"name":"00001_TEMP/15/9-F-15 D-Edited"
name: a well name
Here is an example response. This response has been formatted to improve readability
{
"from": {
"actor": "akka://DefaultActorSystemControllerActorSystem:UpdateWellByUniqueIdJsonActor:UpdateWellByUniqueIdFetcherResponse for UpdateWellByUniqueIdRequest:UpdateWellByUniqueIdRequest{klass=AbstractWellDataUpdater, sourceType=mongo, sourceName=5c75a79b-6935-4656-9fdd-85497776a754, logUniqueId=2c9d008b-57a7-4bdc-9921-82a8ac689a49, properties={\"name\":\"00001_TEMP/15/9-F-15 D-Edited\"}}"
},
"data": {
"id": "2c9d008b-57a7-4bdc-9921-82a8ac689a49",
"content": {
"name": "00001_TEMP/15/9-F-15 D-Edited",
"isLive": false
},
"links": [
{
"rel": "self",
"relEntity": "v1/schema/int/well",
"href": "/ivaap/api/ds/mongo/v1/sources/5c75a79b-6935-4656-9fdd-85497776a754/wells/2c9d008b-57a7-4bdc-9921-82a8ac689a49",
"children": false,
"hasProjectEntityChildren": false,
"isProjectEntity": false
},
{
"rel": "Well",
"name": "Well",
"relEntity": "v1/schema/int/well",
"href": "/ivaap/api/ds/mongo/v1/sources/5c75a79b-6935-4656-9fdd-85497776a754/wells/2c9d008b-57a7-4bdc-9921-82a8ac689a49",
"children": false,
"hasProjectEntityChildren": false,
"isProjectEntity": true
}
]
}
}
The id entry is the unique id of an updated well dataset.
The links section provides HATEOAS links to the services of this well dataset.
If the specified welluniqueid doesn't match a valid well dataset, 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.