Guess file tree template

POST /data/entities/guess_from_path

Get list of possible project file tree templates matching a file path and data ids corresponding to template tokens.

application/json

Body Required

  • project_id string(uuid) Required

    Project unique identifier

  • file_path string Required

    File path to analyze

  • sep string

    Path separator

    Default value is /.

Responses

  • 200 application/json

    List of possible project file tree templates matching the file path

    Hide response attribute Show response attribute object
    • matches array[object]
      Hide matches attributes Show matches attributes object
      • template string

        Template name

      • confidence number

        Confidence score

      • data object

        Extracted data from path

        Hide data attributes Show data attributes object
        • project_id string(uuid)

          Project identifier

        • entity_id string(uuid)

          Entity identifier

  • 400

    Invalid project ID or file path

POST /data/entities/guess_from_path
curl \
 --request POST 'http://api.example.com/data/entities/guess_from_path' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"project_id":"a24a6ea4-ce75-4665-a070-57453082c25","file_path":"/project/asset/working/main_v001.blend","sep":"/"}'
Request examples
{
  "project_id": "a24a6ea4-ce75-4665-a070-57453082c25",
  "file_path": "/project/asset/working/main_v001.blend",
  "sep": "/"
}
Response examples (200)
{
  "matches": [
    {
      "template": "default",
      "confidence": 0.95,
      "data": {
        "project_id": "a24a6ea4-ce75-4665-a070-57453082c25",
        "entity_id": "b35b7fb5-df86-5776-b181-68564193d36"
      }
    }
  ]
}