Update user activity
Set or clear your current activity.
Endpoint
PUT /api/v1/users/{username}/activitySelf
Request
Send a narrow JSON body with the activity text.
{
"activity": "Working on mentions"
}Clear the activity by sending an empty string.
{
"activity": ""
}Usage
curl \
--request PUT \
--header "Authorization: Bearer $GHIT_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{"activity": "Working on mentions"}' \
"$GHIT_API_URL/v1/users/alice/activity"Success
200 OK with the updated activity payload.
If the new activity text contains @user or @team/slug mentions, mention events are emitted each time the activity value changes.