The "updatewelldeviation" web service updates the name of an individual well deviation:
A typical URL is http://myserver.mycompany.com:8080/INTGeoServer/api/ds/{datasourcetype}/v1/sources/{datasource}/trajectories/{trajectoryuniqueid} with the PUT method.
where
datasourcetype: type of a datasource, i.e. mongo, s3, etc.
datasource: unique id of a datasource
trajectoryuniqueid: a unique id of a well deviation
The following payload is expected (pass application/json as Content-Type):
{
"name":"8.5in_drilling_run10 - Actual Traj.Edited"
}
name: a well deviation name
Here is an example response. This response has been formatted to improve readability
{
"from": {
"actor": "akka://DefaultActorSystemControllerActorSystem:UpdateWellDeviationByUniqueIdJsonActor:UpdateWellDeviationByUniqueIdFetcherResponse for UpdateWellDeviationByUniqueIdRequest:UpdateWellDeviationByUniqueIdRequest{klass=AbstractWellDeviationUpdater, sourceType=mongo, sourceName=c9db3458-6698-49d9-ae8f-f407ce26ae2e, logUniqueId=a03e86c7-72c1-414e-aecc-8ea3c5:8.5in_drilling_run10 - Actual Traj, properties={\"name\":\"8.5in_drilling_run10 - Actual Traj.Edited\"}}"
},
"data": {
"id": "a03e86c7-72c1-414e-aecc-8ea3c5:8.5in_drilling_run10 - Actual Traj.Edited",
"content": {
"name": "8.5in_drilling_run10 - Actual Traj.Edited",
"verticalShift": 0.0,
"verticalShiftUnit": "undefined",
"surfaceCoord": [],
"xyUnit": "undefined",
"status": "complete",
"uid": "a03e86c7-72c1-414e-aecc-8ea3c5:8.5in_drilling_run10 - Actual Traj.Edited",
"shouldGroup": true
},
"links": [
{
"rel": "self",
"relEntity": "v1/schema/int/trajectory",
"href": "/ivaap/api/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/trajectories/a03e86c7-72c1-414e-aecc-8ea3c5%3A8.5in_drilling_run10%20-%20Actual%20Traj.Edited",
"children": false,
"hasProjectEntityChildren": false,
"isProjectEntity": false
}
]
}
}
The id entry is the unique id of an updated well deviation.
For detailed description of content section see "Well Deviation Data Web Service (v3)" service.
The links section provides a HATEOAS link to the "Well Deviation Data Web Service (v3)" service.
If the specified trajectoryuniqueid doesn't match a valid well deviation, 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.