Get list of possible project file tree templates matching a file path

POST /data/entities/guess_from_path

and data ids corresponding to template tokens.

application/json

Body Required

  • project_id string(uuid) Required
  • file_path string Required
  • sep string

    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
      • confidence number
      • data object
        Hide data attributes Show data attributes object
        • project_id string(uuid)
        • entity_id string(uuid)
  • 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": "string",
        "entity_id": "string"
      }
    }
  ]
}