The "updatewellboregeometry" web service updates an individual well bore geometry.
A typical URL is http://myserver.mycompany.com:8080/INTGeoServer/api/ds/{datasourcetype}/v1/sources/{datasource}/wbgeometries/{geometryuniqueid} with the PUT method.
where
datasourcetype: type of a datasource, i.e. mongo, geofiles, s3, etc.
datasource: unique id of a datasource
geometryuniqueid: a unique id of a well bore geometry
The following parameters are available:
data: A JSON object representing the data to update. This is required parameter. It must include at least of the following:
content: specifies a new content for the being updated geometry
name: specifies a new name for the being updated geometry
Here is an example payload. This body has been formatted to improve readability
{
"data": {
"content": {
"name": "Andalusit-1 Casing data_Test2 03/14/2023",
"sections": [
{
"type": "casing",
"mdTop": {
"name": "mdTop",
"value": 0.0,
"units": "m"
},
"mdBottom": {
"name": "mdBottom",
"value": 66.0,
"units": "m"
},
"id": {
"name": "id",
"value": 738.0,
"units": "mm"
},
"od": {
"name": "od",
"value": 762.0,
"units": "mm\r"
},
"tvdTop": {
"name": "tvdTop",
"value": 0.0,
"units": "m"
},
"tvdBottom": {
"name": "tvdBottom",
"value": 66.0,
"units": "m"
}
},
{
"type": "casing",
"mdTop": {
"name": "mdTop",
"value": 1000.0,
"units": "m"
},
"mdBottom": {
"name": "mdBottom",
"value": 2339.0,
"units": "m"
},
"id": {
"name": "id",
"value": 323.73,
"units": "mm"
},
"od": {
"name": "od",
"value": 339.73,
"units": "mm\r"
},
"tvdTop": {
"name": "tvdTop",
"value": 1000.0,
"units": "m"
},
"tvdBottom": {
"name": "tvdBottom",
"value": 2339.0,
"units": "m"
}
},
{
"type": "casing",
"mdTop": {
"name": "mdTop",
"value": 0.0,
"units": "m"
},
"mdBottom": {
"name": "mdBottom",
"value": 1194.0,
"units": "m"
},
"id": {
"name": "id",
"value": 488.0,
"units": "mm"
},
"od": {
"name": "od",
"value": 508.0,
"units": "mm\r"
},
"tvdTop": {
"name": "tvdTop",
"value": 0.0,
"units": "m"
},
"tvdBottom": {
"name": "tvdBottom",
"value": 1194.0,
"units": "m"
}
},
{
"type": "casing",
"mdTop": {
"name": "mdTop",
"value": 2250.0,
"units": "m"
},
"mdBottom": {
"name": "mdBottom",
"value": 4386.0,
"units": "m"
},
"id": {
"name": "id",
"value": 231.78,
"units": "mm"
},
"od": {
"name": "od",
"value": 244.48,
"units": "mm\r"
},
"tvdTop": {
"name": "tvdTop",
"value": 2250.0,
"units": "m"
},
"tvdBottom": {
"name": "tvdBottom",
"value": 4386.0,
"units": "m"
}
}
]
}
}
}
Here is an example response. This response has been formatted to improve readability
{
"from": {
"actor": "akka://DefaultActorSystemControllerActorSystem:UpdateWellBoreGeometryByUniqueIdJsonActor:UpdateWellBoreGeometryByUniqueIdFetcherResponse for UpdateWellBoreGeometryRequest{geometryUpdaterClass=AbstractWellBoreGeometryUpdater, sectionUpdaterClass=AbstractWellBoreSectionUpdater, sourceType=mongo, sourceName=c9db3458-6698-49d9-ae8f-f407ce26ae2e, geometry=SerializableWellBoreGeometry{sourceType=mongo, sourceName=c9db3458-6698-49d9-ae8f-f407ce26ae2e, uniqueId=e8b7afb1-b167-4603-9885-16fa29ac5e7c}, sections=[], properties={\"content\":\"{\\\"name\\\":\\\"Andalusit-1 Casing data_Test2 03/14/2023\\\",\\\"sections\\\":[{\\\"type\\\":\\\"casing\\\",\\\"mdTop\\\":{\\\"name\\\":\\\"mdTop\\\",\\\"value\\\":0.0,\\\"units\\\":\\\"m\\\"},\\\"mdBottom\\\":{\\\"name\\\":\\\"mdBottom\\\",\\\"value\\\":66.0,\\\"units\\\":\\\"m\\\"},\\\"id\\\":{\\\"name\\\":\\\"id\\\",\\\"value\\\":738.0,\\\"units\\\":\\\"mm\\\"},\\\"od\\\":{\\\"name\\\":\\\"od\\\",\\\"value\\\":762.0,\\\"units\\\":\\\"mm\\\\r\\\"},\\\"tvdTop\\\":{\\\"name\\\":\\\"tvdTop\\\",\\\"value\\\":0.0,\\\"units\\\":\\\"m\\\"},\\\"tvdBottom\\\":{\\\"name\\\":\\\"tvdBottom\\\",\\\"value\\\":66.0,\\\"units\\\":\\\"m\\\"}},{\\\"type\\\":\\\"casing\\\",\\\"mdTop\\\":{\\\"name\\\":\\\"mdTop\\\",\\\"value\\\":1000.0,\\\"units\\\":\\\"m\\\"},\\\"mdBottom\\\":{\\\"name\\\":\\\"mdBottom\\\",\\\"value\\\":2339.0,\\\"units\\\":\\\"m\\\"},\\\"id\\\":{\\\"name\\\":\\\"id\\\",\\\"value\\\":323.73,\\\"units\\\":\\\"mm\\\"},\\\"od\\\":{\\\"name\\\":\\\"od\\\",\\\"value\\\":339.73,\\\"units\\\":\\\"mm\\\\r\\\"},\\\"tvdTop\\\":{\\\"name\\\":\\\"tvdTop\\\",\\\"value\\\":1000.0,\\\"units\\\":\\\"m\\\"},\\\"tvdBottom\\\":{\\\"name\\\":\\\"tvdBottom\\\",\\\"value\\\":2339.0,\\\"units\\\":\\\"m\\\"}},{\\\"type\\\":\\\"casing\\\",\\\"mdTop\\\":{\\\"name\\\":\\\"mdTop\\\",\\\"value\\\":0.0,\\\"units\\\":\\\"m\\\"},\\\"mdBottom\\\":{\\\"name\\\":\\\"mdBottom\\\",\\\"value\\\":1194.0,\\\"units\\\":\\\"m\\\"},\\\"id\\\":{\\\"name\\\":\\\"id\\\",\\\"value\\\":488.0,\\\"units\\\":\\\"mm\\\"},\\\"od\\\":{\\\"name\\\":\\\"od\\\",\\\"value\\\":508.0,\\\"units\\\":\\\"mm\\\\r\\\"},\\\"tvdTop\\\":{\\\"name\\\":\\\"tvdTop\\\",\\\"value\\\":0.0,\\\"units\\\":\\\"m\\\"},\\\"tvdBottom\\\":{\\\"name\\\":\\\"tvdBottom\\\",\\\"value\\\":1194.0,\\\"units\\\":\\\"m\\\"}},{\\\"type\\\":\\\"casing\\\",\\\"mdTop\\\":{\\\"name\\\":\\\"mdTop\\\",\\\"value\\\":2250.0,\\\"units\\\":\\\"m\\\"},\\\"mdBottom\\\":{\\\"name\\\":\\\"mdBottom\\\",\\\"value\\\":4386.0,\\\"units\\\":\\\"m\\\"},\\\"id\\\":{\\\"name\\\":\\\"id\\\",\\\"value\\\":231.78,\\\"units\\\":\\\"mm\\\"},\\\"od\\\":{\\\"name\\\":\\\"od\\\",\\\"value\\\":244.48,\\\"units\\\":\\\"mm\\\\r\\\"},\\\"tvdTop\\\":{\\\"name\\\":\\\"tvdTop\\\",\\\"value\\\":2250.0,\\\"units\\\":\\\"m\\\"},\\\"tvdBottom\\\":{\\\"name\\\":\\\"tvdBottom\\\",\\\"value\\\":4386.0,\\\"units\\\":\\\"m\\\"}}]}\"}}"
},
"data": {
"id": "e8b7afb1-b167-4603-9885-16fa29ac5e7c",
"content": {
"uid": "e8b7afb1-b167-4603-9885-16fa29ac5e7c",
"name": "Andalusit-1 Casing data_Test2 03/14/2023",
"sections": [
{
"type": "casing",
"mdTop": {
"name": "mdTop",
"value": 0,
"units": "m"
},
"mdBottom": {
"name": "mdBottom",
"value": 66,
"units": "m"
},
"id": {
"name": "id",
"value": 738,
"units": "mm"
},
"od": {
"name": "od",
"value": 762,
"units": "mm\r"
},
"tvdTop": {
"name": "tvdTop",
"value": 0,
"units": "m"
},
"tvdBottom": {
"name": "tvdBottom",
"value": 66,
"units": "m"
}
},
{
"type": "casing",
"mdTop": {
"name": "mdTop",
"value": 1000,
"units": "m"
},
"mdBottom": {
"name": "mdBottom",
"value": 2339,
"units": "m"
},
"id": {
"name": "id",
"value": 323.73,
"units": "mm"
},
"od": {
"name": "od",
"value": 339.73,
"units": "mm\r"
},
"tvdTop": {
"name": "tvdTop",
"value": 1000,
"units": "m"
},
"tvdBottom": {
"name": "tvdBottom",
"value": 2339,
"units": "m"
}
},
{
"type": "casing",
"mdTop": {
"name": "mdTop",
"value": 0,
"units": "m"
},
"mdBottom": {
"name": "mdBottom",
"value": 1194,
"units": "m"
},
"id": {
"name": "id",
"value": 488,
"units": "mm"
},
"od": {
"name": "od",
"value": 508,
"units": "mm\r"
},
"tvdTop": {
"name": "tvdTop",
"value": 0,
"units": "m"
},
"tvdBottom": {
"name": "tvdBottom",
"value": 1194,
"units": "m"
}
},
{
"type": "casing",
"mdTop": {
"name": "mdTop",
"value": 2250,
"units": "m"
},
"mdBottom": {
"name": "mdBottom",
"value": 4386,
"units": "m"
},
"id": {
"name": "id",
"value": 231.78,
"units": "mm"
},
"od": {
"name": "od",
"value": 244.48,
"units": "mm\r"
},
"tvdTop": {
"name": "tvdTop",
"value": 2250,
"units": "m"
},
"tvdBottom": {
"name": "tvdBottom",
"value": 4386,
"units": "m"
}
}
]
},
"links": [
{
"rel": "self",
"relEntity": "v1/schema/int/wbgeometry",
"href": "/ivaap/api/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/wbgeometries/e8b7afb1-b167-4603-9885-16fa29ac5e7c",
"children": false,
"hasProjectEntityChildren": false,
"isProjectEntity": false
}
]
}
}
The output is the same as for the wellboregeometry service.
If the specified geometryuniqueid doesn't match a valid well bore geometry, no JSON response will be provided. The HTTP response will only show a "InvalidUniqueId" (error 404) in its headers.