v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13132276.2 KB
users

Updates or insert a given session.

put/{userId}/sessions/{sessionId}

Path parameters

userIdstring required

Create sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.

sessionIdstring required

The ID of the session to be created.

Request body

idstring

A client-generated identifier that is unique across all sessions owned by this particular user.

namestring

A human readable name of the session.

descriptionstring

A description for this session.

modifiedTimeMillisstring int64

A timestamp that indicates when the session was last modified.

endTimeMillisstring int64

An end time, in milliseconds since epoch, inclusive.

activeTimeMillisstring int64

Session active time. While start_time_millis and end_time_millis define the full session time, the active time can be shorter and specified by active_time_millis. If the inactive time during the session is known, it should also be inserted via a com.google.activity.segment data point with a STILL activity value

startTimeMillisstring int64

A start time, in milliseconds since epoch, inclusive.

activityTypeinteger

The type of activity this session represents.

Response

Successful response