| `id_or_username` | string | yes | The id or username of the user to get a status of |
## Set user status
## Set user status
Set the status of the current user.
Set the status of the current user.
...
@@ -485,21 +496,26 @@ Set the status of the current user.
...
@@ -485,21 +496,26 @@ Set the status of the current user.
PUT /user/status
PUT /user/status
```
```
```json
{
"emoji":"coffee",
"message":"I crave coffee"
}
```
Parameters:
| Attribute | Type | Required | Description |
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| --------- | ---- | -------- | ----------- |
| `emoji` | string | no | The name of the emoji to use as status, if omitted `speech_balloon` is used. Emoji name can be one of the specified names in the [Gemojione index][gemojione-index]. |
| `emoji` | string | no | The name of the emoji to use as status, if omitted `speech_balloon` is used. Emoji name can be one of the specified names in the [Gemojione index][gemojione-index]. |
| `message` | string | no | The message to set as a status. It can also contain emoji codes. |
| `message` | string | no | The message to set as a status. It can also contain emoji codes. |
When both parameters are empty, the status will be cleared.
When both parameters `emoji` and `message` are empty, the status will be cleared.
```bash
curl --request PUT --header"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"--data"emoji=coffee"--data"emoji=I crave coffee" https://gitlab.example.com/api/v4/user/status