Skip to content
This repository was archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
35 lines (25 loc) · 1.74 KB

File metadata and controls

35 lines (25 loc) · 1.74 KB

Set User Status

HTTP MethodURLRequires Auth
POST/api/v1/users.setStatusyes

{% hint style="info" %} Permission required: edit-other-user-info and the setting AllowUserStatusMessageChange enabled. {% endhint %}

Body Parameters

KeyExampleRequiredDescription
messageMy status update.RequiredThe user's status message.
statusonlineOptionalThe user's status like online, away, busy, offline.
userIdzXuq7SvPKYbzYmfpoOptionalThe userId to change. The running user must have edit-other-user-info permission
usernamerocket.catOptionalThe username to change. The running user must have edit-other-user-info permission

Example Call

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

Example Response

{
    "success": true
}

Change Log

Version Description
1.2.0 Added