Updating the Companies Last Seen Time

You cannot update the Last Seen Time directly for a company. This needs to be done when updating the Last Seen Time of a User on the user endpoint. A company's last seen time is only updated if it is included in the list of companies supplied to the user endpoint. For example: if a user is a member of 3 companies, but only 1 company is supplied in the companies array, only that 1 company will be updated.

# Update Last Seen Time to a specific time for both user and company

$ curl https://api.intercom.io/users \
-X POST \
-H 'Authorization:Bearer <Your access token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' -d '
{
  "user_id": "25",
  "last_request_at": 1480076371,
  "companies": [
    { "company_id" : "366" }
  ]
}

# Update Last Seen Time to the current time for both user and company

$ curl https://api.intercom.io/users \
-X POST \
-H 'Authorization:Bearer <Your access token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' -d '
{
  "user_id": "25",
  "update_last_request_at": true,
  "companies": [
    { "company_id" : "366" }
  ]
}'