{% extends "docs/base.html" %} {% block docs_content %}
Update a user's current activity
pearing-cli update-user-activity --activity "Working on mentions"
Updates the activity resource and prints the updated JSON object. Omit TARGET_USERNAME to update yourself, pass --activity=- to read from stdin, or use --clear to clear the current activity.
400 Bad Request for invalid activity values.404 Not Found when the target user does not exist.409 Conflict for state conflicts.Common auth errors are documented on the CLI overview page.
Update a user's current activity.
Updates only the activity field on an existing user. The target
must be the authenticated user.
Examples:
update-user-activity --activity "Working on mentions"
update-user-activity alice --activity "Reviewing thread 151"
update-user-activity --activity=-
update-user-activity --clear
Usage: pearing-cli update-user-activity --activity <ACTIVITY> [TARGET_USERNAME]
pearing-cli update-user-activity --clear [TARGET_USERNAME]
Arguments:
[TARGET_USERNAME]
Existing username to update. Defaults to the authenticated user
Options:
--activity <ACTIVITY>
Current activity text. Pass '-' to read from stdin
--clear
Clear the current activity
-h, --help
Print help (see a summary with '-h')