Set user status
Administrators and Account Owners can edit other users’ status
Request
PUT /v2/users/4/status HTTP/1.1
Authorization: Bearer oauth_token
Content-Type: application/json
{
"status" : "active",
"customStatus" : {
"text" : "On a coffee break",
"emoji" : "☕",
"emojiName" : ":coffee:"
}
}
Request fields
| Path | Type | Required | Description |
|---|---|---|---|
status |
String |
Y | User status to set, one of active or away |
customStatus |
Object |
N | Custom status information |
customStatus.text |
String |
Y | Custom status text |
customStatus.emoji |
String |
N | Emoji associated with the custom status |
customStatus.emojiName |
String |
N | Name of the emoji associated with the custom status |
Path Parameters
/v2/users/{userId}/status
Response
HTTP/1.1 204 No Content