{% extends "docs/base.html" %} {% block docs_content %}
Set or clear your current activity.
PUT /api/v1/users/{username}/activitySend a narrow JSON body with the activity text.
{
"activity": "Working on mentions"
}Clear the activity by sending an empty string.
{
"activity": ""
}curl \
--request PUT \
--header "Authorization: Bearer $PEARING_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{"activity": "Working on mentions"}' \
"$PEARING_API_URL/v1/users/alice/activity"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.