Skip to main content
POST
/
v1
/
graphql
Get Project List
curl --request POST \
  --url https://realtimelca-prod.hasura.app/v1/graphql \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "operationName": "GetProjectList",
  "variables": {
    "orderBy": [
      {
        "favorite": "desc_nulls_last"
      },
      {
        "updatedAt": "desc_nulls_last"
      }
    ],
    "whereBuildingType": {},
    "whereCalculation": {},
    "whereFavorite": {},
    "whereLocation": {},
    "whereName": {},
    "whereProjectStatus": {},
    "whereRole": {}
  },
  "query": "query GetProjectList($orderBy: [project_order_by!], $whereBuildingType: buildingType_bool_exp, $whereCalculation: projectCalculation_bool_exp, $whereFavorite: Boolean_comparison_exp, $whereLocation: projectLocation_bool_exp, $whereName: String_comparison_exp, $whereProjectStatus: projectStatus_bool_exp, $whereRole: String_comparison_exp) { project(order_by: $orderBy, where: {deletedBy: {_is_null: true}, buildingType: $whereBuildingType, calculation: $whereCalculation, favorite: $whereFavorite, location: $whereLocation, name: $whereName, projectStatus: $whereProjectStatus, role: $whereRole}) { ...projectList __typename } } fragment projectList on project { ...projectBase area buildingType { id label __typename } calculation { calculationType { id label __typename } __typename } createdAt favorite location { city country postalCode id street streetNumber __typename } memberships { role userId __typename } models { id name __typename } projectStatus { id label __typename } specialConditionConfig { enabled __typename } updatedAt __typename } fragment projectBase on project { id name role speckleStreamId __typename }"
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
operationName
string

Must be GetProjectList.

variables
object

Filters and ordering for the project list query.

query
string

The GetProjectList GraphQL query string.

Response

default

Response schema not yet documented in the upstream Postman spec.