Skip to main content
PATCH
/
live-shares
Update non-expired Live Sharing Link
curl --request PATCH \
  --url https://api.samsara.com/live-shares \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Example Live Sharing Link name",
  "description": "Sample description",
  "expiresAtTime": "2020-01-27T07:06:25Z"
}
'
{
  "data": {
    "id": "leesdwqjx42dkvp86so",
    "liveSharingUrl": "https://cloud.samsara.com/o/123456/fleet/viewer/address/7hf4lnu455wep22rtun",
    "name": "Example Live Sharing Link name",
    "type": "assetsLocation",
    "assetsLocationLinkConfig": {
      "assetId": "1234",
      "location": {
        "formattedAddress": "1990 Alameda Street, San Francisco, CA 94103",
        "latitude": 37.456345,
        "longitude": 34.5633749,
        "name": "Suburbs"
      },
      "tags": [
        {
          "id": "3914",
          "name": "East Coast",
          "parentTagId": "4815"
        }
      ]
    },
    "assetsNearLocationLinkConfig": {
      "addressId": "1234"
    },
    "assetsOnRouteLinkConfig": {
      "recurringRouteId": "1234"
    },
    "description": "Sample description",
    "expiresAtTime": "2020-01-27T07:06:25Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://samsara-showcase.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Query Parameters

id
string
required

Unique identifier for the Live Sharing Link.

Body

application/json
name
string
required

Name of the Live Sharing Link.

Maximum string length: 255
Example:

"Example Live Sharing Link name"

description
string

Description for the Live Sharing Link (not applicable for 'assetsOnRoute' type).

Maximum string length: 255
Example:

"Sample description"

expiresAtTime
string

Date that this link expires in RFC 3339 format. Can't be set in the past. If not provided then link will never expire.

Example:

"2020-01-27T07:06:25Z"

Response

OK response.

data
object
required

Live Sharing Link object