The "updatewellboreperforationset" web service updates an individual perforation set.
A typical URL is http://myserver.mycompany.com:8080/INTGeoServer/api/ds/{datasourcetype}/v1/sources/{datasource}/perforationsets/{perforationsetuniqueid} with the PUT method.
where
datasourcetype: type of a datasource, i.e. mongo, geofiles, s3, etc.
datasource: unique id of a datasource
perforationsetuniqueid: a unique id of a perforation set
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 perforation set.
name: specifies a new name for the being updated perforation set
Here is an example payload. This payload has been formatted to improve readability
{
"data" : {
"content": {
"name": "Test Perforation Set 03/14/2023",
"reverseSequenceNumbersForAssembly": false,
"components": [
{
"type": "bullet",
"obsShooting": 1,
"date": 1584188148,
"method": "perforation",
"topFormation": "",
"completionStatus": "complete",
"currentStatusDate": 1615724148,
"count": 1,
"density": 8.5,
"phase": 120.0,
"angle": 12.0,
"remark": "",
"company": "ACME, Inc.",
"source": "",
"topDepth": {
"name": "top depth",
"value": 100.0,
"units": "m"
},
"baseDepth" : {
"name": "base depth",
"value": 80.0,
"units": "m"
},
"diameter": {
"name": "diamter",
"value": 10.0,
"units": "m"
}
}
]
}
}
}
Here is an example response. This response has been formatted to improve readability
{
"from": {
"actor": "akka://DefaultActorSystemControllerActorSystem:UpdateWellBorePerforationSetByUniqueIdJsonActor:UpdateWellBorePerforationSetByUniqueIdFetcherResponse for UpdateWellBorePerforationSetRequest{perforationSetUpdaterClass=AbstractWellBorePerforationSetUpdater, perforationUpdaterClass=AbstractWellBorePerforationUpdater, sourceType=mongo, sourceName=c9db3458-6698-49d9-ae8f-f407ce26ae2e, perforationSet=SerializableWellBorePerforationSet{sourceType=mongo, sourceName=c9db3458-6698-49d9-ae8f-f407ce26ae2e, uniqueId=c1bb6d90-85cd-4787-8592-3eef3e9b1938}, sections=[], properties={\"content\":\"{\\\"name\\\":\\\"Test Perforation Set 03/14/2023\\\",\\\"reverseSequenceNumbersForAssembly\\\":false,\\\"components\\\":[{\\\"type\\\":\\\"bullet\\\",\\\"obsShooting\\\":1,\\\"date\\\":1584188148,\\\"method\\\":\\\"perforation\\\",\\\"topFormation\\\":\\\"\\\",\\\"completionStatus\\\":\\\"complete\\\",\\\"currentStatusDate\\\":1615724148,\\\"count\\\":1,\\\"density\\\":8.5,\\\"phase\\\":120.0,\\\"angle\\\":12.0,\\\"remark\\\":\\\"\\\",\\\"company\\\":\\\"ACME, Inc.\\\",\\\"source\\\":\\\"\\\",\\\"topDepth\\\":{\\\"name\\\":\\\"top depth\\\",\\\"value\\\":100.0,\\\"units\\\":\\\"m\\\"},\\\"baseDepth\\\":{\\\"name\\\":\\\"base depth\\\",\\\"value\\\":80.0,\\\"units\\\":\\\"m\\\"},\\\"diameter\\\":{\\\"name\\\":\\\"diamter\\\",\\\"value\\\":10.0,\\\"units\\\":\\\"m\\\"}}]}\"}}"
},
"data": {
"id": "c1bb6d90-85cd-4787-8592-3eef3e9b1938",
"content": {
"uid": "c1bb6d90-85cd-4787-8592-3eef3e9b1938",
"name": "Test Perforation Set 03/14/2023",
"reverseSequenceNumbersForAssembly": false,
"components": [
{
"type": "bullet",
"obsShooting": 1,
"date": 1584188148,
"method": "perforation",
"topFormation": "",
"completionStatus": "complete",
"currentStatusDate": 1615724148,
"topDepth": {
"name": "top depth",
"value": 100.0,
"units": "m"
},
"baseDepth": {
"name": "base depth",
"value": 80.0,
"units": "m"
},
"count": 1,
"density": 8.5,
"diameter": {
"name": "diamter",
"value": 10.0,
"units": "m"
},
"phase": 120.0,
"angle": 120.0,
"remark": "",
"company": "ACME, Inc.",
"source": ""
}
]
},
"links": [
{
"rel": "self",
"relEntity": "v1/schema/int/perforationset",
"href": "/ivaap/api/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/perforationsets/c1bb6d90-85cd-4787-8592-3eef3e9b1938",
"children": false,
"hasProjectEntityChildren": false,
"isProjectEntity": false
}
]
}
}
The output is the same as for the wellboreperforationset service.
If the specified perforationsetuniqueid doesn't match a valid perforation set, no JSON response will be provided. The HTTP response will only show a "InvalidUniqueId" (error 404) in its headers.