The "createwellboreperforationset" web service creates an perforation set for the well bore.
A typical URL is http://myserver.mycompany.com:8080/INTGeoServer/api/ds/{datasourcetype}/v1/sources/{datasource}/wellbores/{wellboretuniqueid}/perforationsets with the POST method.
where
datasourcetype: type of a datasource, i.e. mongo, geofiles, s3, etc.
datasource: unique id of a datasource
wellboreuniqueid: a unique id of a well bore
The following parameters are available:
data: A JSON object representing the data to update. This is required parameter. It must include the following fields:
name: specifies a new name for the being updated perforation set. This is a required field.
reverseSequenceNumbersForAssembly: indicates whether the sequence number is in the inverse order of the assembly order. This is a required field.
mdBottom: specifies a depth of a being created perforation set. This is a required field.
components: specifes components of a being created perforation set. This is an optional field.
Here is an example request body. This body has been formatted to improve readability
{
"data":{
"content":{
"name":"TestPerforationSet",
"reverseSequenceNumbersForAssembly":false,
"mdBottom":{
"name": "mdBottom",
"value": 66.0,
"units": "m"
}
}
}
}
Here is an example response. This response has been formatted to improve readability
{
"from": {
"actor": "akka://DefaultActorSystemControllerActorSystem:CreateWellBorePerforationSetJsonActor:FindWellBorePerforationSetByUniqueIdFetcherResponse for FindWellBorePerforationSetByUniqueIdRequest:FindWellBorePerforationSetByUniqueIdRequest{klass=AbstractWellBorePerforationSetFinder, sourceName=c9db3458-6698-49d9-ae8f-f407ce26ae2e, uniqueId=c1bb6d90-85cd-4787-8592-3eef3e9b1938, sourceType=mongo}"
},
"data": {
"id": "c1bb6d90-85cd-4787-8592-3eef3e9b1938",
"content": {
"uid": "c1bb6d90-85cd-4787-8592-3eef3e9b1938",
"name": "TestPerforationSet",
"reverseSequenceNumbersForAssembly": false,
"components": []
},
"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 "Well Bore Perforation Set Web Service (v3)" service.
If the specified wellboreuniqueid doesn't match a valid well bore, no JSON response will be provided. The HTTP response will only show a "InvalidUniqueId" (error 404) in its headers.