Skip to main content
PATCH
/
contacts
/
{id}
Update a contact
curl --request PATCH \
  --url https://api.samsara.com/contacts/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "jane.jones@yahoo.com",
  "firstName": "Jane",
  "lastName": "Jones",
  "phone": "111-222-3344"
}
'
{
  "data": {
    "email": "jane.jones@yahoo.com",
    "firstName": "Jane",
    "id": "22408",
    "lastName": "Jones",
    "phone": "111-222-3344"
  }
}

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.

Path Parameters

id
string
required

Unique identifier for the contact.

Body

application/json

Updates to the contact.

Information for adding a notification contact for alerts.

email
string

Email address of the contact.

Maximum string length: 255
Example:

"jane.jones@yahoo.com"

firstName
string

First name of the contact.

Maximum string length: 255
Example:

"Jane"

lastName
string

Last name of the contact.

Maximum string length: 255
Example:

"Jones"

phone
string

Phone number of the contact.

Maximum string length: 255
Example:

"111-222-3344"

Response

Updated contact object with given ID.

A single contact.

data
object

Information about a notification contact for alerts.