Metadata
Endpoints that retrieve block model metadata
List all block models in a workspace
Block Model API
Gets a paginated list of all block models in a workspace identified by workspace_id. By retrieving this list, you can
obtain the bm_id value for a given model, which can then be used in
subsequent API requests to upload or download data, along with performing other operations.
The list is ordered from the most recently updated block model to the least recently updated block model.
By default, the list is ordered from the most recently updated block model to the least recently updated block model.
If a sort query parameter is specified, the list will be ordered according to the specified field.
This endpoint is paginated, therefore by default this lists at most the first 50 block models. To get other block
models, use the offset and limit query parameters to select the desired part of the list.
An offset beyond the total number of block models in the workspace will result in an empty results list.
The limit must be an integer from 1 to 100.
The response includes total, which is the total number of block models within the list.
All workspace roles can use this endpoint.
Parameters
Returns
200
Successful Response
Endpoint
Request
curl -X GET 'https://{service_host}/blockmodel/orgs/{org_id}/workspaces/{workspace_id}/block-models' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"count": 0,
"limit": 0,
"offset": 0,
"results": [
{
"bbox": {
"x_minmax": {
"max": 0,
"min": 0
},
"y_minmax": {
"max": 0,
"min": 0
},
"z_minmax": {
"max": 0,
"min": 0
}
},
"block_rotation": [
{
"angle": 0,
"axis": "x"
}
],
"bm_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"coordinate_reference_system": "string",
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"description": "string",
"fill_subblocks": false,
"geoscience_object_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"last_updated_at": "2024-07-29T15:51:28.071Z",
"last_updated_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"model_origin": {
"x": 0,
"y": 0,
"z": 0
},
"name": "string",
"normalized_rotation": [
null
],
"org_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"size_options": {
"block_size": {
"x": 0,
"y": 0,
"z": 0
},
"model_type": "string",
"n_blocks": {
"nx": 0,
"ny": 0,
"nz": 0
}
},
"size_unit_id": "string",
"workspace_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
],
"total": 0
}
List all block models in an organization
Block Model API
Gets a paginated list of all block models across all workspaces that are accessible in the organization identified by
org_id. By retrieving this list, you can obtain the bm_id value for a given model, which can then be used in
subsequent API requests to upload or download data, along with performing other operations.
By default, the list is ordered from the most recently updated block model to the least recently updated block model.
If a sort query parameter is specified, the list will be ordered according to the specified field.
This endpoint is paginated, therefore by default this lists at most the first 50 block models. To get other block
models, use the offset and limit query parameters to select the desired part of the list.
An offset beyond the total number of block models across all workspaces will result in an empty results list.
The limit must be an integer from 1 to 100.
The response includes total, which is the total number of block models within the list.
All workspace roles can use this endpoint.
Parameters
Returns
200
Successful Response
Endpoint
Request
curl -X GET 'https://{service_host}/blockmodel/orgs/{org_id}/block-models' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"count": 0,
"limit": 0,
"offset": 0,
"results": [
{
"bbox": {
"x_minmax": {
"max": 0,
"min": 0
},
"y_minmax": {
"max": 0,
"min": 0
},
"z_minmax": {
"max": 0,
"min": 0
}
},
"block_rotation": [
{
"angle": 0,
"axis": "x"
}
],
"bm_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"coordinate_reference_system": "string",
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"description": "string",
"fill_subblocks": false,
"geoscience_object_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"last_updated_at": "2024-07-29T15:51:28.071Z",
"last_updated_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"model_origin": {
"x": 0,
"y": 0,
"z": 0
},
"name": "string",
"normalized_rotation": [
null
],
"org_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"size_options": {
"block_size": {
"x": 0,
"y": 0,
"z": 0
},
"model_type": "string",
"n_blocks": {
"nx": 0,
"ny": 0,
"nz": 0
}
},
"size_unit_id": "string",
"workspace_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
],
"total": 0
}
Get a block model's metadata
Block Model API
Gets the details of the block model for the given bm_id.
All workspace roles can use this endpoint.
Parameters
Returns
200
Successful Response
Endpoint
Request
curl -X GET 'https://{service_host}/blockmodel/orgs/{org_id}/workspaces/{workspace_id}/block-models/{bm_id}' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"bbox": {
"x_minmax": {
"max": 0,
"min": 0
},
"y_minmax": {
"max": 0,
"min": 0
},
"z_minmax": {
"max": 0,
"min": 0
}
},
"block_rotation": [
{
"angle": 0,
"axis": "x"
}
],
"bm_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"coordinate_reference_system": "string",
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"description": "string",
"fill_subblocks": false,
"geoscience_object_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"last_updated_at": "2024-07-29T15:51:28.071Z",
"last_updated_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"model_origin": {
"x": 0,
"y": 0,
"z": 0
},
"name": "string",
"normalized_rotation": [
null
],
"org_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"size_options": {
"block_size": {
"x": 0,
"y": 0,
"z": 0
},
"model_type": "string",
"n_blocks": {
"nx": 0,
"ny": 0,
"nz": 0
}
},
"size_unit_id": "string",
"workspace_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}