Computers

Record managed computer activity

Changed on

Advances the inactivity clock for an active managed computer without performing connection or restart work. Not supported for computers connected through Remote Control. Members of a shared session can record activity on the service-account computer that runs it by passing its ID as sharedSessionId.

post/api/v0/computers/{computerId}/activity

Request

  • Base URL
    https://api.factory.ai
  • Auth
    HTTP bearer

Path parameters

computerId, string required

Computer ID. Must not contain "/" and must not be "." or "..".

Query parameters

sharedSessionId, string uuid

A shared session the caller is a member of. On a Factory-hosted deployment, grants access to the service-account computer that runs it.

Headers

X-Factory-Org-Id, string

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Response

Response for status 200

RecordComputerActivity200ResponseBody required
lastActiveAt, number required

Unix timestamp, in milliseconds, of the latest recorded activity. It never moves backwards.

Changes

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      removed the required property detail from the response with the status

    • breaking

      removed the required property status from the response with the status

    26 more changes in this revision