Gamma API

List a storey's element ids

GET
/api/projects/{projectId}/models/metadata/storeys/object-ids

Per model, the GlobalIds of the elements placed on the storey with this name — not those that only reach into it, as a wall from the storey below does: what a level of the 3D viewer shows. Each model is read at its newest converted version; models with none are listed in notConverted instead of failing the request. 409 when the organization's storage the files are in is disconnected.

Who may call it: Anyone on the project whose permission profile allows model.read. API keys: yes, given model.read for this project.

Authorization

cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Host- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

projectId*string

The project's id.

Query Parameters

modelIds*string

The models to read, 1 to 50 ids separated by commas.

storey*string

A storey's name, as GET …/storeys lists it: matched by name on every model.

Length1 <= length <= 200

Response Body

OK.

application/json
  1. response

Per model, the GlobalIds of the elements a rule matches: what the 3D viewer paints.

models*array<>
notConverted*array<string>

The models asked for that have no converted version, and were not read.

Example Request
curl -X GET 'http://localhost:3000/api/projects/string/models/metadata/storeys/object-ids?modelIds=string&storey=string'
Example Response
{  "models": [    {      "modelId": "string",      "versionId": "string",      "version": -9007199254740991,      "objectIds": [        "string"      ]    }  ],  "notConverted": [    "string"  ]}