Users

User-related operations

Get zones for a user

get
Path parameters
idstringRequired
Responses
200

List of user zones

application/json
get
GET /api/users/{id}/zones HTTP/1.1
Host: 
Accept: */*
[
  {
    "id": 1,
    "title": "text",
    "description": "text",
    "geojson": {},
    "userId": "text",
    "isGlobal": true,
    "map3dType": "text",
    "map3dUrl": "text",
    "map3dConfig": {},
    "categories": [
      {
        "category": {
          "id": 1,
          "name": "text",
          "description": "text",
          "color": "text",
          "createdAt": "2025-10-09T00:03:57.777Z"
        }
      }
    ],
    "pins": [
      {
        "id": 1,
        "title": "text",
        "geoPose": {
          "position": {
            "lat": 1,
            "lon": 1,
            "h": 0
          },
          "yprAngles": {
            "yaw": 0,
            "pitch": 0,
            "roll": 0
          }
        },
        "contentType": "IMAGE",
        "contentUrl": "text",
        "zoneId": 1,
        "gcpId": 1,
        "gcp": {
          "id": 1,
          "title": "text",
          "description": "text",
          "gcpType": "SINGLE",
          "altitude": 1,
          "aprilTagId": 1,
          "gcpData": "text",
          "photoUrls": [
            "text"
          ],
          "zoneId": 1,
          "pin": {
            "id": 1,
            "title": "text",
            "geoPose": {
              "position": {
                "lat": 1,
                "lon": 1,
                "h": 0
              },
              "yprAngles": {
                "yaw": 0,
                "pitch": 0,
                "roll": 0
              }
            },
            "contentType": "IMAGE",
            "contentUrl": "text",
            "zoneId": 1,
            "gcpId": 1,
            "gcp": "[Circular Reference]",
            "zone": {
              "id": 1,
              "title": "text"
            },
            "createdAt": "2025-10-09T00:03:57.777Z",
            "updatedAt": "2025-10-09T00:03:57.777Z"
          },
          "zone": {
            "id": 1,
            "title": "text"
          },
          "uploadedFiles": [
            {
              "id": 1,
              "fileName": "text",
              "fileUrl": "text",
              "fileSize": 1,
              "mimeType": "text",
              "bucketPath": "text",
              "gcpId": 1,
              "userId": "text",
              "uploadedAt": "2025-10-09T00:03:57.777Z"
            }
          ],
          "createdAt": "2025-10-09T00:03:57.777Z",
          "updatedAt": "2025-10-09T00:03:57.777Z"
        },
        "zone": {
          "id": 1,
          "title": "text"
        },
        "createdAt": "2025-10-09T00:03:57.777Z",
        "updatedAt": "2025-10-09T00:03:57.777Z"
      }
    ],
    "_count": {
      "pins": 1
    },
    "createdAt": "2025-10-09T00:03:57.777Z",
    "updatedAt": "2025-10-09T00:03:57.777Z"
  }
]