project

Returns the path and configuration of the project .fmu directory at 'path'

Used for when a user selects a project .fmu directory in a directory not found above the user's current working directory. Will overwrite the project .fmu directory attached to a session if one exists. If not, it is added to the session.

post/api/v1/project/

Request

  • The document declares no server URL.
  • Auth: none declared

Cookies

fmu_settings_sessionstring nullable

Request body

pathstring path required

Absolute path to the directory which maybe contains a .fmu directory.

Example request

{
  "path": "/path/to/project.2038.02.02"
}

Response

Successful Response

pathstring path required

Absolute path to the directory which maybe contains a .fmu directory.

project_dir_namestring required

The directory name, not the path, that contains the .fmu directory.

Example response

{
  "path": "/path/to/project.2038.02.02",
  "project_dir_name": "project.2038.02.02",
  "config": {
    "masterdata": {
      "smda": {
        "coordinate_system": {
          "identifier": "ST_WGS84_UTM37N_P32637",
          "uuid": "15ce3b84-766f-4c93-9050-b154861f9100"
        },
        "country": [
          {
            "identifier": "Norway",
            "uuid": "15ce3b84-766f-4c93-9050-b154861f9100"
          }
        ],
        "discovery": [
          {
            "short_identifier": "SomeDiscovery",
            "uuid": "15ce3b84-766f-4c93-9050-b154861f9100"
          }
        ],
        "field": [
          {
            "identifier": "OseFax",
            "uuid": "15ce3b84-766f-4c93-9050-b154861f9100"
          }
        ],
        "stratigraphic_column": {
          "identifier": "DROGON_2020",
          "uuid": "15ce3b84-766f-4c93-9050-b154861f9100"
        }
      }
    },
    "associated_fields": [
      {
        "identifier": "OseFax",
        "uuid": "15ce3b84-766f-4c93-9050-b154861f9100"
      }
    ],
    "model": {
      "name": "Drogon",
      "revision": "21.0.0.dev"
    },
    "access": {
      "asset": {
        "name": "Drogon"
      }
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.