POST
/
activity
/
{workspaceId}
/
user
/
{userId}
curl --request POST \
  --url https://api.hyra.io/activity/{workspaceId}/user/{userId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "duration": 123,
  "messages_sent": 123,
  "game": "<string>",
  "gifted_by": "<string>"
}'
{
  "totals": {
    "minutes": 123,
    "messages": 123,
    "period": "<string>"
  },
  "activity": {
    "_id": "<string>",
    "start": "<string>",
    "end": "<string>",
    "ended": true,
    "game": "<string>",
    "friends": [
      "<string>"
    ],
    "idle_time": 123,
    "tracked_idle": 123,
    "duration": 123,
    "messages_sent": 123
  }
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

userId
string
required
workspaceId
string
required

Query Parameters

withNewTotal
boolean

Body

application/json
duration
number
required
messages_sent
number
required
game
string
gifted_by
string

Response

200 - application/json
totals
object
activity
object
required