Current section
Files
Jump to
Current section
Files
priv/docs/methods/admin.emoji.add.json
{
"args": {
"name": {
"desc": "The name of the emoji to be added (using lower-case letters only). Colons (`:myemoji:`) around the value are not required, although they may be included.",
"required": true,
"type": "string"
},
"url": {
"desc": "The URL of a file to use as an image for the emoji. Square images under 128KB and with transparent backgrounds work best.",
"required": true,
"type": "string"
}
},
"desc": "Add an emoji.",
"errors": {
"emoji_limit_reached": "Unable to add emoji due to limit reached.",
"error_bad_format": "Invalid image data was provided.",
"error_bad_name_i18n": "Value passed for `name` was invalid.",
"error_bad_upload": "There was an error uploading the image.",
"error_bad_wide": "The image width or height is too large.",
"error_lower_case_names_only": "Capital letters are not allowed in emoji names.",
"error_missing_name": "Value passed for `name` is missing or empty.",
"error_name_taken": "Value passed for `name` already exists.",
"error_name_taken_i18n": "Value passed for `name` already exists.",
"error_no_image": "Empty image data was provided.",
"error_too_big": "The image file size is too large.",
"failed_to_add_emoji": "Failed to add the specified emoji.",
"failed_to_fetch_active_team": "There are no active teams on the org and we need at least one.",
"feature_not_enabled": "The Admin APIs feature is not enabled for this team.",
"no_image_uploaded": "No image data was provided.",
"not_an_admin": "This method is only accessible by org owners and Admins.",
"resized_but_still_too_large": "The image is still too large after resizing.",
"too_many_frames": "The image has too many frames."
},
"rate_limit": {
"label": "Tier 2: 20+ per minute",
"url": "https://docs.slack.dev/apis/web-api/rate-limits"
},
"scopes": {
"user": [
{
"name": "admin.teams:write",
"url": "https://docs.slack.dev/reference/scopes/admin.teams.write"
}
]
}
}