Hubs

Update a location

Note: This endpoint is deprecated. Use PATCH /places instead. Access closes for new customers on November 1, 2026, and the endpoint will be removed on November 1, 2027. It will continue to function as documented until then. See the migration guide.

Update existing location by ID.

<b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).

To use this endpoint, select Write Routes under the Driver Workflow category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>

Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.

patch/hub/location/{id}

Request

  • Base URL
    https://api.samsara.com
  • Auth
    HTTP bearer

Path parameters

idstring required

The unique Samsara ID of the hub location to update

Request body

Example request

{
  "data": {
    "address": "123 Industrial Blvd, Los Angeles, CA 90210, US",
    "customerLocationId": "LOC-123",
    "driverInstructions": "sample instructions",
    "isDepot": false,
    "latitude": 34.0522,
    "longitude": -118.2437,
    "name": "Customer ABC Warehouse",
    "plannerNotes": "sample note",
    "serviceTimeSeconds": 1800,
    "serviceWindows": [
      {
        "daysOfWeek": [
          "monday",
          "tuesday",
          "wednesday",
          "thursday",
          "friday"
        ],
        "endTime": "17:00:00",
        "startTime": "08:00:00"
      }
    ],
    "skillsRequired": [
      "650e8400-e29b-41d4-a716-446655440001"
    ]
  }
}

Response

OK response.

Example response

{
  "data": {
    "address": "123 Industrial Blvd, Los Angeles, CA 90210, US",
    "createdAt": "2024-01-15T10:30:00Z",
    "customerLocationId": "LOC-123",
    "driverInstructions": "sample instructions",
    "hubId": "550e8400-e29b-41d4-a716-446655440000",
    "id": "750e8400-e29b-41d4-a716-446655440002",
    "latitude": 34.0522,
    "longitude": -118.2437,
    "name": "Customer ABC Warehouse",
    "plannerNotes": "sample note",
    "serviceTimeSeconds": 1800,
    "serviceWindows": [
      {
        "daysOfWeek": [
          "monday",
          "monday"
        ],
        "endTime": "17:00:00",
        "startTime": "08:00:00"
      }
    ],
    "skillsRequired": [
      {
        "id": "650e8400-e29b-41d4-a716-446655440001",
        "name": "Heavy Lifting"
      }
    ],
    "updatedAt": "2024-01-15T10:30:00Z"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.