Post
/api/v1/emoji-custom.update
Update a custom emoji. Permission required: manage-emoji
Changelog
| Version | Description |
|---|---|
| 0.74.0 | Added |
Header parameters
X-User-Id
stringRequired
The userId of the authenticated user.
ExamplerbAXPnMktTFbNpwtJ
X-Auth-Token
stringRequired
The authToken of the authenticated user.
ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
Body parameters
object
emoji
string
Upload the emoji file that you want to update as form-data.
name
string Required
Enter the name of the emoji that you want to update.
Examplemy-custom-emoji
_id
string Required
Enter the emoji ID to be updated.
ExampleAG7DSB2H32YHS
aliases
string
The alias of the custom emoji.
Exampleemoji-alias
Responses
200
OK
Success
{
"success": true
}object
success
boolean
400
Bad Request
Example 1
{
"success": false,
"error": "[The required \"_id\" query param is missing.]",
"errorType": "The required \"_id\" query param is missing."
}Example 2
{
"success": false,
"error": "[Emoji not found.]",
"errorType": "Emoji not found."
}object
success
boolean
error
string
errorType
string
401
Unauthorized
Authorization Error
{
"status": "error",
"message": "You must be logged in to do this."
}object
status
string
message
string