The "createwelltubingset" web service creates a new well tubing set for an individual wel bore.
A typical URL is http://myserver.mycompany.com:8080/INTGeoServer/api/ds/{datasourcetype}/v1/sources/{datasource}/wellbores/{wellboreuniqueid}/tubingsets with the POST method.
where
datasourcetype: type of a datasource, i.e. mongo, s3, etc.
datasource: a unique id of a datasource
wellboreuniqueid: a unique id of a well bore (or a well if well bores are not supported)
The following payload is expected (pass application/json as Content-Type):
{
"data": {
"content": {
"name":"NewTubingSet",
"assemblyType":"tubing",
"reverseSequenceNumbersForAssembly":false,
"mdBottom":{
"name":"MD Bottom",
"value":"10.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"
}
]
}
]
}
}
}
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:CreateWellTubingSetJsonActor:FindWellTubingSetByUniqueIdFetcherResponse for FindWellTubingSetByUniqueIdRequest:FindWellTubingSetByUniqueIdRequest{klass=AbstractWellTubingSetFinder, sourceName=c9db3458-6698-49d9-ae8f-f407ce26ae2e, uniqueId=1d9049c8-f231-4d8b-bc6b-6cfc6ca8f11a, sourceType=mongo}"
},
"data": {
"id": "1d9049c8-f231-4d8b-bc6b-6cfc6ca8f11a",
"content": {
"uid": "1d9049c8-f231-4d8b-bc6b-6cfc6ca8f11a",
"name": "NewTubingSet",
"assemblyType": "tubing",
"reverseSequenceNumbersForAssembly": false,
"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"
}
}
]
},
"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 wellboreuniqueid doesn't match a valid well bore (or a well if well bores are not supported) , no JSON response will be provided. The HTTP response will only show a "InvalidUniqueId" (error 404) in its headers.