| HTTP Method | URL | Requires Auth |
|---|
POST | /api/v1/users.setStatus | yes |
{% hint style="info" %}
Permission required: edit-other-user-info and the setting AllowUserStatusMessageChange enabled.
{% endhint %}
| Key | Example | Required | Description |
|---|
message | My status update. | Required | The user's status message. |
status | online | Optional | The user's status like online, away, busy, offline. |
userId | zXuq7SvPKYbzYmfpo | Optional | The userId to change. The running user must have edit-other-user-info permission |
username | rocket.cat | Optional | The username to change. The running user must have edit-other-user-info permission |
curl -H "X-Auth-Token: 40tB-Cn5YQJ74QMlQXi4Zf4E_-e0P5CrklU2pWOtV9M" \
-H "X-User-Id: uunbZHiuEnib8Pawj" \
-H "Content-type: application/json" \
-d '{"message":"My status update", "status": "online"}' \
http://localhost:3000/api/v1/users.setStatus
| Version |
Description |
1.2.0 |
Added |