The "updatewelltable" web service updates the name of an individual well table:
A typical URL is http://myserver.mycompany.com:8080/INTGeoServer/api/ds/{datasourcetype}/v1/sources/{datasource}/welltables/{welltableuniqueid} with the PUT method.
where
datasourcetype: type of a datasource, i.e. mongo, s3, etc.
datasource: unique id of a datasource
welltableuniqueid: a unique id of a well table
The following payload is expected (pass application/json as Content-Type):
{
"name":"TimeLog.Edited"
}
name: a well table name
Here is an example response. This response has been formatted to improve readability
{
"from": {
"actor": "akka://DefaultActorSystemControllerActorSystem:UpdateWellTableByUniqueIdJsonActor:UpdateWellTableByUniqueIdFetcherResponse for UpdateWellTableByUniqueIdRequest:UpdateWellTableByUniqueIdRequest{klass=AbstractWellTableUpdater, sourceType=mongo, sourceName=c9db3458-6698-49d9-ae8f-f407ce26ae2e, logUniqueId=b6472ec7-cc01-47f0-aa05-bbca09f51d84, properties={\"name\":\"TimeLog.Edited\"}}"
},
"data": {
"id": "b6472ec7-cc01-47f0-aa05-bbca09f51d84",
"content": {
"name": "TimeLog.Edited",
"columnNames": [
"Start Date (DateTime)",
"Cum Duration",
"End Date (DateTime)",
"Activity Type",
"Activity Code",
"Ops Category",
"Start Depth",
"End Depth",
"Borehole",
"Comment\r"
],
"columnTypes": [
"DateTime",
"Time",
"DateTime",
"String",
"String",
"String",
"String",
"String",
"String",
"String"
],
"columnUnits": [
"ms",
"ms",
"ms",
"",
"",
"",
"",
"",
"",
""
],
"rowCount": 286
},
"links": [
{
"rel": "self",
"relEntity": "v1/schema/int/table",
"href": "/ivaap/api/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/welltables/b6472ec7-cc01-47f0-aa05-bbca09f51d84",
"children": false,
"hasProjectEntityChildren": false,
"isProjectEntity": false
},
{
"rel": "Column",
"name": "Column",
"relEntity": "v1/schema/int/column",
"href": "/ivaap/api/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/welltables/b6472ec7-cc01-47f0-aa05-bbca09f51d84/columns",
"children": true,
"hasProjectEntityChildren": false,
"isProjectEntity": false
},
{
"rel": "Properties",
"name": "Properties",
"relEntity": "v1/schema/int/properties",
"href": "/ivaap/api/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/welltables/b6472ec7-cc01-47f0-aa05-bbca09f51d84/properties",
"children": false,
"hasProjectEntityChildren": false,
"isProjectEntity": false
}
]
}
}
The id entry is the unique id of an updated well table.
For detailed description of content section see "Well Table Data Web Service (v3)" service.
The links section provides HATEOAS links to the services supported by this well table.
If the specified welltableuniqueid doesn't match a valid well table, 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.