Current section
Files
Jump to
Current section
Files
priv/docs/methods/admin.emoji.rename.json
{
"args": {
"name": {
"desc": "The name of the emoji to be renamed. Colons (`:myemoji:`) around the value are not required, although they may be included.",
"required": true,
"type": "string"
},
"new_name": {
"desc": "The new name of the emoji.",
"required": true,
"type": "string"
}
},
"desc": "Rename an emoji.",
"errors": {
"cannot_resolve_alias": "The alias emoji could not be resolved",
"error_bad_name_i18n": "Value passed for `new_name` was invalid.",
"error_invalid_emoji_to_rename": "Value passed for `name` was invalid.",
"error_missing_name": "Value passed for `name` is missing or empty.",
"error_name_taken": "Value passed for `name` already exists.",
"error_name_taken_i18n": "The name has already been taken by another emoji, in the international set. Emoji must have unique names.",
"failed_to_fetch_active_team": "There are no active teams on the org and we need at least one.",
"failed_to_rename_emoji": "The emoji could not be renamed.",
"feature_not_enabled": "The Admin APIs feature is not enabled for this team.",
"not_an_admin": "This method is only accessible by org owners and Admins."
},
"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"
}
]
}
}