Gamma API
ProgressDashboard

List scopes

GET
/api/projects/{projectId}/scopes

By name, each with the models it counts now.

Who may call it: Anyone on the project whose permission profile allows object.read. API keys: yes, given object.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.

Response Body

OK.

application/json
  1. response
scopes*array<>
Example Request
curl -X GET 'http://localhost:3000/api/projects/string/scopes'
Example Response
{  "scopes": [    {      "id": "string",      "name": "string",      "source": "models",      "viewId": "string",      "searchSetId": "string",      "charts": [        {          "id": "string",          "name": "string",          "metric": "completion",          "groupBy": {            "column": "objectId"          },          "subGroupBy": {            "column": "objectId"          },          "measure": {            "column": "objectId"          }        }      ],      "createdById": "string",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z",      "modelIds": [        "string"      ],      "effectiveModelIds": [        "string"      ],      "conditions": [        {          "logical": "and",          "category": "string",          "name": "string",          "operator": "equals",          "value": "string"        }      ]    }  ]}