Objects
Endpoints for updating and maintaining geoscience objects
List geoscience objects by org
The response will list geoscience objects for the provided organisation ID.
Parameters
Returns
200
Successful Response
Endpoint
Request
curl -X GET 'https://{service_host}/geoscience-object/orgs/{org_id}/objects' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"count": 0,
"limit": 0,
"links": {
"next": "string",
"prev": "string"
},
"objects": [
{
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"deleted_at": "2024-07-29T15:51:28.071Z",
"deleted_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"geojson_bounding_box": {
"coordinates": [
[
[
0
]
]
],
"type": "Polygon"
},
"geojson_bounding_box_from_workspace_crs": true,
"modified_at": "2024-07-29T15:51:28.071Z",
"modified_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"name": "string",
"object_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"schema": "string",
"stage": {
"name": "string",
"stage_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"workspace_access": "owner",
"workspace_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"workspace_name": "string"
}
],
"offset": 0,
"total": 0
}
Update a geoscience object
Update or restore a geoscience object by UUID.
Uploading an object to this endpoint will update (replace, i.e. no partial updates) the existing object with a corresponding UUID.
If the object was previously deleted, and the deleted parameter is set to false, this operation will attempt to restore the object. You cannot provide an object body when attempting to restore an object.
Note that the value of the uuid field in the object must match the value in the URL path.
New objects must be uploaded by path.
Parameters
{
"schema": "string",
"uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"additionalProp1": "string",
"additionalProp2": "number",
"additionalProp3": "boolean"
}
Returns
201
The geoscience object version has been created.
Endpoint
Request
curl -X POST 'https://{service_host}/geoscience-object/orgs/{org_id}/workspaces/{workspace_id}/objects/{object_id}' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"deleted_at": "2024-07-29T15:51:28.071Z",
"deleted_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"etag": "string",
"geojson_bounding_box": {
"coordinates": [
[
[
0
]
]
],
"type": "Polygon"
},
"geojson_bounding_box_from_workspace_crs": true,
"links": {
"data": [
{
"download_url": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
}
],
"download": "string"
},
"modified_at": "2024-07-29T15:51:28.071Z",
"modified_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"object": {
"schema": "string",
"uuid": "string",
"additionalProp1": "string",
"additionalProp2": "number",
"additionalProp3": "boolean"
},
"object_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"object_path": "string",
"stage": {
"name": "string",
"stage_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"version_id": "string"
}
Download a geoscience object by UUID
Geoscience Object API
Download a geoscience object with the provided UUID. If required, the object can be compressed, currently gzip compression is supported. To receive a compressed payload set header Accept-Encoding: gzip.
Parameters
Returns
200
The requested geoscience object and metadata
Endpoint
Request
curl -X GET 'https://{service_host}/geoscience-object/orgs/{org_id}/workspaces/{workspace_id}/objects/{object_id}' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"deleted_at": "2024-07-29T15:51:28.071Z",
"deleted_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"etag": "string",
"geojson_bounding_box": {
"coordinates": [
[
[
0
]
]
],
"type": "Polygon"
},
"geojson_bounding_box_from_workspace_crs": true,
"links": {
"data": [
{
"download_url": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
}
],
"download": "string"
},
"modified_at": "2024-07-29T15:51:28.071Z",
"modified_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"object": {
"schema": "string",
"uuid": "string",
"additionalProp1": "string",
"additionalProp2": "number",
"additionalProp3": "boolean"
},
"object_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"object_path": "string",
"stage": {
"name": "string",
"stage_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"version_id": "string",
"versions": [
{
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"etag": "string",
"links": {
"download": "string"
},
"stage": {
"name": "string",
"stage_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"version_id": "string"
}
]
}
Soft delete a geoscience object
Geoscience Object API
Delete a geoscience object by UUID.
Deleting an object to this endpoint will soft delete the existing object with a
corresponding UUID.
Note that the value of the uuid field in the object must match the value in the URL path.
Parameters
Returns
204
The geoscience object version has been deleted.
Endpoint
Request
curl -X DELETE 'https://{service_host}/geoscience-object/orgs/{org_id}/workspaces/{workspace_id}/objects/{object_id}' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
No response body.
Create a geoscience object
Create or update a geoscience object.
Upload a geoscience object based on the schema element. Geoscience objects can be stored hierarchically, by providing the path to the object, including the object name, in the request URL. A detailed list of the available object schemas can be found in Seequent's evo-schemas repository.
The submitted properties will be validated against the specified schema properties.
To create a new object, upload it to a unique path with the UUID field set to null.
The response will contain a reflection of the uploaded object with a newly assigned object ID.
This can be used for future requests to update the object.
If a version of the geoscience object already exists at the specified path a new version will be created. To move or rename an existing object, simply upload a new version of it (with the same UUID) to a new, unique path or file name.
Note that every upload of an object is considered a new version, even if no changes have been made.
If required, the object should be compressed, currently gzip compression is supported.
Set header Content-Encoding: gzip if the content is compressed and Accept-Encoding: gzip to receive
compressed content.
Parameters
{
"schema": "string",
"uuid": "string",
"additionalProp1": "string",
"additionalProp2": "number",
"additionalProp3": "boolean"
}
Returns
201
The geoscience object version has been created.
Endpoint
Request
curl -X POST 'https://{service_host}/geoscience-object/orgs/{org_id}/workspaces/{workspace_id}/objects/path/*' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"deleted_at": "2024-07-29T15:51:28.071Z",
"deleted_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"etag": "string",
"geojson_bounding_box": {
"coordinates": [
[
[
0
]
]
],
"type": "Polygon"
},
"geojson_bounding_box_from_workspace_crs": true,
"links": {
"data": [
{
"download_url": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
}
],
"download": "string"
},
"modified_at": "2024-07-29T15:51:28.071Z",
"modified_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"object": {
"schema": "string",
"uuid": "string",
"additionalProp1": "string",
"additionalProp2": "number",
"additionalProp3": "boolean"
},
"object_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"object_path": "string",
"stage": {
"name": "string",
"stage_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"version_id": "string"
}
Download a geoscience object
Geoscience Object API
Download a geoscience object from the provided path. If required, the object can be compressed, currently gzip compression is supported. To receive a compressed payload set header Accept-Encoding: gzip.
Parameters
Returns
200
The requested geoscience object and metadata
Endpoint
Request
curl -X GET 'https://{service_host}/geoscience-object/orgs/{org_id}/workspaces/{workspace_id}/objects/path/*' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"deleted_at": "2024-07-29T15:51:28.071Z",
"deleted_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"etag": "string",
"geojson_bounding_box": {
"coordinates": [
[
[
0
]
]
],
"type": "Polygon"
},
"geojson_bounding_box_from_workspace_crs": true,
"links": {
"data": [
{
"download_url": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
}
],
"download": "string"
},
"modified_at": "2024-07-29T15:51:28.071Z",
"modified_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"object": {
"schema": "string",
"uuid": "string",
"additionalProp1": "string",
"additionalProp2": "number",
"additionalProp3": "boolean"
},
"object_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"object_path": "string",
"stage": {
"name": "string",
"stage_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"version_id": "string",
"versions": [
{
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"etag": "string",
"links": {
"download": "string"
},
"stage": {
"name": "string",
"stage_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"version_id": "string"
}
]
}
Soft delete a geoscience object by path
Geoscience Object API
Soft delete a geoscience object by path. This endpoint will mark the object as deleted but won't actually remove it from the database.
Parameters
Returns
204
The geoscience object has been soft deleted.
Endpoint
Request
curl -X DELETE 'https://{service_host}/geoscience-object/orgs/{org_id}/workspaces/{workspace_id}/objects/path/*' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
No response body.
List geoscience objects
Geoscience Object API
List geoscience objects. The response will include all geoscience objects matching the given filters.The geoscience objects will be the latest version of the object. If there are no objects matching the given filters, an empty list is returned.
Parameters
Returns
200
Successful Response
Endpoint
Request
curl -X GET 'https://{service_host}/geoscience-object/orgs/{org_id}/workspaces/{workspace_id}/objects' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"count": 0,
"limit": 0,
"links": {
"next": "string",
"prev": "string"
},
"objects": [
{
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"deleted_at": "2024-07-29T15:51:28.071Z",
"deleted_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"etag": "string",
"geojson_bounding_box": {
"coordinates": [
[
[
0
]
]
],
"type": "Polygon"
},
"geojson_bounding_box_from_workspace_crs": true,
"links": {
"download": "string"
},
"modified_at": "2024-07-29T15:51:28.071Z",
"modified_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"name": "string",
"object_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"path": "string",
"schema": "string",
"stage": {
"name": "string",
"stage_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"version_id": "string"
}
],
"offset": 0,
"total": 0
}
List the latest version IDs for geoscience objects
Geoscience Object API
Request to fetch the latest version IDs for a collection of geoscience objects (maximum of 500). The request body must only contain a list of UUIDs of the objects to check. The response will contain a list of objects with their UUIDs and the latest version ID. If the object from a given UUID does not exist or has been deleted, the request will be successful, but the version ID will be null.
Parameters
[
"string"
]
Returns
200
Successful Response
Endpoint
Request
curl -X PATCH 'https://{service_host}/geoscience-object/orgs/{org_id}/workspaces/{workspace_id}/objects' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
[
{
"object_id": "string",
"version_id": "string"
}
]
Gets specified versions of a Geoscience Object.
Geoscience Object API
List specific versions of a Geoscience Object. The response will include all the versions specified in version_ids field of the request body. If one or more of the version ids are not found for the geoscience object a 404 error will be returned.
Parameters
{
"version_ids": [
"string"
]
}
Returns
200
Successful Response
Endpoint
Request
curl -X POST 'https://{service_host}/geoscience-object/orgs/{org_id}/workspaces/{workspace_id}/objects/{object_id}/versions' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"versions": [
{
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"etag": "string",
"links": {
"download": "string"
},
"stage": {
"name": "string",
"stage_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"version_id": "string"
}
]
}