The "updatewelltubingset" web service updates an individual well tubing set.
A typical URL is http://myserver.mycompany.com:8080/INTGeoServer/api/ds/{datasourcetype}/v1/sources/{datasource}/tubingsets/{tubingsetuniqueid} with the PUT method.
where
datasourcetype: type of a datasource, i.e. mongo, s3, etc.
datasource: a unique id of a datasource
tubingsetuniqueid: a unique id of a well tubing set
The following payload is expected (pass application/json as Content-Type):
{
"data": {
"content": {
"name":"NewTubingSet.Edited",
"mdBottom": {
"name":"MD Bottom",
"value":"12.0",
"units":"ft"
},
"components": [
{
"type": "TUBING",
"sequenceNum": 1,
"description": "Drill Pipe 3 1/2\" N-80 9.3 lbs/ft",
"id": {
"name": "id",
"value": 0.0,
"units": "ft"
},
"od": {
"name": "od",
"value": 1000.0,
"units": "ft"
},
"length": {
"name": "length",
"value": 996.5,
"units": "ft"
},
"topDepth": {
"name": "topDepth",
"value": -996.5,
"units": "ft"
},
"baseDepth": {
"name": "baseDepth",
"value": 0.0,
"units": "ft"
},
"properties": [
{
"name": "TUBING_GRADE",
"value": "HT-40"
},
{
"name": "TUBING_STRENGTH",
"value": "100"
},
{
"name": "SOURCE\r",
"value": "RMOTC",
"units": "\r"
}
]
},
{
"type": "crossover reducing",
"sequenceNum": 2,
"description": "Crossover Reducing 2 7/8\" M-VAM",
"id": {
"name": "id",
"value": 396.1,
"units": "ft"
},
"od": {
"name": "od",
"value": 398.57,
"units": "ft"
},
"length": {
"name": "length",
"value": -1.0299999999999998,
"units": "ft"
},
"topDepth": {
"name": "topDepth",
"value": -995.47,
"units": "ft"
},
"baseDepth": {
"name": "baseDepth",
"value": -996.5,
"units": "ft"
},
"properties": [
{
"name": "TUBING_GRADE",
"value": "sd-TR-vc-YD 11122344"
},
{
"name": "TUBING_STRENGTH",
"value": "202"
},
{
"name": "SOURCE\r",
"value": "RMOTC",
"units": "\r"
}
]
}
]
}
}
}
See "Well Tubing Set Data Web Service (v3)" service for description of parameters.
Here is an example response. This response has been formatted to improve readability.
{
"from": {
"actor": "akka://DefaultActorSystemControllerActorSystem:UpdateWellTubingSetByUniqueIdJsonActor:UpdateWellTubingSetByUniqueIdFetcherResponse for UpdateWellTubingSetByUniqueIdWorkerRequest:UpdateWellTubingSetByUniqueIdWorkerRequest{tubingUpdaterClass=AbstractWellTubingSetUpdater, componentUpdaterClass=AbstractTubingSetComponentUpdater, sourceType=mongo, sourceName=c9db3458-6698-49d9-ae8f-f407ce26ae2e, pathInfo=/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/tubingsets/1d9049c8-f231-4d8b-bc6b-6cfc6ca8f11a, tubingSet=SerializableWellTubingSet{sourceType=mongo, sourceName=c9db3458-6698-49d9-ae8f-f407ce26ae2e, uniqueId=1d9049c8-f231-4d8b-bc6b-6cfc6ca8f11a}, components=[SerializableTubingSetComponent{sourceType=mongo, sourceName=c9db3458-6698-49d9-ae8f-f407ce26ae2e, uniqueId=7ccdbf63-d823-4f1e-9ed0-0ef68041d8a7}], index={\"name\":\"NewTubingSet.Edited\",\"mdBottom\":{\"name\":\"MD Bottom\",\"value\":\"12.0\",\"units\":\"ft\"},\"components\":[{\"type\":\"TUBING\",\"sequenceNum\":1,\"description\":\"Drill Pipe 3 1/2\\\" N-80 9.3 lbs/ft\",\"id\":{\"name\":\"id\",\"value\":0.0,\"units\":\"ft\"},\"od\":{\"name\":\"od\",\"value\":1000.0,\"units\":\"ft\"},\"length\":{\"name\":\"length\",\"value\":996.5,\"units\":\"ft\"},\"topDepth\":{\"name\":\"topDepth\",\"value\":-996.5,\"units\":\"ft\"},\"baseDepth\":{\"name\":\"baseDepth\",\"value\":0.0,\"units\":\"ft\"},\"properties\":[{\"name\":\"TUBING_GRADE\",\"value\":\"HT-40\"},{\"name\":\"TUBING_STRENGTH\",\"value\":\"100\"},{\"name\":\"SOURCE\\r\",\"value\":\"RMOTC\",\"units\":\"\\r\"}]},{\"type\":\"crossover reducing\",\"sequenceNum\":2,\"description\":\"Crossover Reducing 2 7/8\\\" M-VAM\",\"id\":{\"name\":\"id\",\"value\":396.1,\"units\":\"ft\"},\"od\":{\"name\":\"od\",\"value\":398.57,\"units\":\"ft\"},\"length\":{\"name\":\"length\",\"value\":-1.0299999999999998,\"units\":\"ft\"},\"topDepth\":{\"name\":\"topDepth\",\"value\":-995.47,\"units\":\"ft\"},\"baseDepth\":{\"name\":\"baseDepth\",\"value\":-996.5,\"units\":\"ft\"},\"properties\":[{\"name\":\"TUBING_GRADE\",\"value\":\"sd-TR-vc-YD 11122344\"},{\"name\":\"TUBING_STRENGTH\",\"value\":\"202\"},{\"name\":\"SOURCE\\r\",\"value\":\"RMOTC\",\"units\":\"\\r\"}]}]}}"
},
"data": {
"id": "1d9049c8-f231-4d8b-bc6b-6cfc6ca8f11a",
"content": {
"uid": "1d9049c8-f231-4d8b-bc6b-6cfc6ca8f11a",
"name": "NewTubingSet.Edited",
"assemblyType": "tubing",
"reverseSequenceNumbersForAssembly": false,
"mdBottom": {
"name": "MD Bottom",
"value": 12.0,
"units": "ft"
},
"components": [
{
"type": "TUBING",
"sequenceNum": 1,
"description": "Drill Pipe 3 1/2\" N-80 9.3 lbs/ft",
"id": {
"name": "id",
"value": 0.0,
"units": "ft"
},
"od": {
"name": "od",
"value": 1000.0,
"units": "ft"
},
"length": {
"name": "length",
"value": 996.5,
"units": "ft"
},
"topDepth": {
"name": "topDepth",
"value": -996.5,
"units": "ft"
},
"baseDepth": {
"name": "baseDepth",
"value": 0.0,
"units": "ft"
}
},
{
"type": "crossover reducing",
"sequenceNum": 2,
"description": "Crossover Reducing 2 7/8\" M-VAM",
"id": {
"name": "id",
"value": 396.1,
"units": "ft"
},
"od": {
"name": "od",
"value": 398.57,
"units": "ft"
},
"length": {
"name": "length",
"value": -1.0299999999999998,
"units": "ft"
},
"topDepth": {
"name": "topDepth",
"value": -995.47,
"units": "ft"
},
"baseDepth": {
"name": "baseDepth",
"value": -996.5,
"units": "ft"
}
}
]
},
"links": [
{
"rel": "self",
"relEntity": "v1/schema/int/tubingset",
"href": "/ivaap/api/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/tubingsets/1d9049c8-f231-4d8b-bc6b-6cfc6ca8f11a",
"children": false,
"hasProjectEntityChildren": false,
"isProjectEntity": false
}
]
}
}
The output is the same as for the "Well Tubing Set Data Web Service (v3)" service.
The links section provides HATEOAS links to the "Well Tubing Set Data Web Service (v3)" service.
If the specified tubingsetuniqueid doesn't match a valid well tubing set, no JSON response will be provided. The HTTP response will only show a "InvalidUniqueId" (error 404) in its headers.