Gamma API

Read model element values

POST
/api/projects/{projectId}/models/metadata/universe

Per model, every element — or those matching conditions — with its value for each of attributes, dictionary-encoded: what the progress dashboard counts. One JSON answer, about 30 bytes an element. 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 __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

projectId*string

The project's id.

Request Body

application/json
  1. body
modelIds*array<>
Items1 <= items <= 50
attributes*array<|>
Itemsitems <= 20
conditions?array<>

Only the elements matching these; every element if left out.

Itemsitems <= 50

Response Body

OK.

application/json
  1. response
models*array<>
notConverted*array<string>

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

Example Request
curl -X POST 'http://localhost:3000/api/projects/string/models/metadata/universe' \  -H 'Content-Type: application/json' \  -d '{  "modelIds": [    "string"  ],  "attributes": [    {      "column": "objectId"    }  ]}'
Example Response
{  "models": [    {      "modelId": "string",      "versionId": "string",      "version": -9007199254740991,      "dicts": [        [          "string"        ]      ],      "objects": [        {          "o": "string",          "v": [            -9007199254740991          ]        }      ]    }  ],  "notConverted": [    "string"  ]}