latestOpenAPI 3.0.02026-08-2217901.1 MB

ef9153fcac7c

Locations

Get location

get/locations/{id}

Path parameters

idinteger required

ID of the location

Response

Successfully retrieved location's information

Example response

{
  "location": {
    "id": 963,
    "name": "Warehouses",
    "description": "The warehouse where we store the forklifts",
    "address": "1090 main street, Franklin",
    "barcode": "BWFPBNRHAW54CG",
    "parentId": 852,
    "childrenIds": [
      342,
      521
    ],
    "thumbnail": {
      "id": 12345,
      "mimeType": "image/png",
      "fileName": "image.png",
      "url": "http://example.com/image.png",
      "createdAt": "2022-01-01T00:00:00.000Z",
      "width": 220,
      "height": 100
    },
    "attachments": [
      {
        "id": 12345,
        "mimeType": "image/png",
        "fileName": "image.png",
        "url": "http://example.com/image.png",
        "createdAt": "2022-01-01T00:00:00.000Z",
        "width": 220,
        "height": 100
      }
    ],
    "extraFields": {
      "Department": "Electrical"
    },
    "teamIds": [
      2
    ],
    "vendorIds": [
      2
    ],
    "createdAt": "2022-01-01T00:00:00.000Z",
    "updatedAt": "2022-01-01T00:00:00.000Z",
    "externalId": "ext-location-001"
  }
}