Skip to main content
PATCH
/
issues
Update a single issue.
curl --request PATCH \
  --url https://api.samsara.com/issues \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "9814a1fa-f0c6-408b-bf85-51dc3bc71ac7",
  "dueDate": "2019-06-13T19:08:25Z",
  "externalIds": {},
  "status": "open"
}
'
{
  "data": {
    "createdAtTime": "2019-06-13T19:08:25Z",
    "id": "9814a1fa-f0c6-408b-bf85-51dc3bc71ac7",
    "issueSource": {
      "type": "form",
      "id": "9814a1fa-f0c6-408b-bf85-51dc3bc71ac7"
    },
    "status": "open",
    "submittedAtTime": "2019-06-13T19:08:25Z",
    "submittedBy": {
      "id": "938172",
      "type": "driver"
    },
    "title": "Oil spill",
    "updatedAtTime": "2019-06-13T19:08:25Z",
    "asset": {
      "entryType": "tracked",
      "externalIds": {},
      "id": "281474982859091",
      "name": "trailer 123"
    },
    "assignedTo": {
      "id": "938172",
      "type": "driver"
    },
    "description": "Oil spill in left corner of SF1",
    "dueDate": "2019-06-13T19:08:25Z",
    "externalIds": {},
    "mediaList": [
      {
        "id": "9814a1fa-f0c6-408b-bf85-51dc3bc71ac7",
        "processingStatus": "processing",
        "url": "https://samsara-forms-submission-media-uploads.s3.us-west-2.amazonaws.com/123456",
        "urlExpiresAt": "2019-06-13T19:08:25Z"
      }
    ],
    "priority": "high"
  }
}

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.

Body

application/json

Issue fields to update.

id
string
required

ID of the issue. Can be either a unique Samsara ID or an external ID for the issue.

Example:

"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7"

assignedTo
object

Issue assignee update object

dueDate
string<date-time>

Due date of the issue. UTC timestamp in RFC 3339 format.

Example:

"2019-06-13T19:08:25Z"

externalIds
object

A map of external ids

status
enum<string>

Status of the issue. Valid values: open, inProgress, resolved, dismissed

Available options:
open,
inProgress,
resolved,
dismissed
Example:

"open"

Response

OK response.

data
object
required

Issue response object.