{
  "args": {
    "channel": {
      "desc": "Conversation to set the topic of",
      "required": true,
      "type": "string"
    },
    "topic": {
      "desc": "The new topic string. Does not support formatting or linkification.",
      "example": "Apply topically for best effects",
      "required": true,
      "type": "string"
    }
  },
  "desc": "Sets the topic for a conversation.",
  "errors": {
    "channel_not_found": "Value passed for `channel` was invalid.",
    "is_archived": "Channel has been archived.",
    "method_not_supported_for_channel_type": "This type of conversation cannot be used with this method.",
    "not_in_channel": "Authenticated user is not in the channel.",
    "too_long": "Topic was longer than 250 characters.",
    "user_is_restricted": "Setting the topic is a restricted action."
  },
  "rate_limit": {
    "label": "Tier 2: 20+ per minute",
    "url": "https://docs.slack.dev/apis/web-api/rate-limits"
  },
  "scopes": {
    "bot": [
      {
        "name": "channels:manage",
        "url": "https://docs.slack.dev/reference/scopes/channels.manage"
      },
      {
        "name": "channels:write.topic",
        "url": "https://docs.slack.dev/reference/scopes/channels.write.topic"
      },
      {
        "name": "groups:write",
        "url": "https://docs.slack.dev/reference/scopes/groups.write"
      },
      {
        "name": "groups:write.topic",
        "url": "https://docs.slack.dev/reference/scopes/groups.write.topic"
      },
      {
        "name": "im:write",
        "url": "https://docs.slack.dev/reference/scopes/im.write"
      },
      {
        "name": "im:write.topic",
        "url": "https://docs.slack.dev/reference/scopes/im.write.topic"
      },
      {
        "name": "mpim:write",
        "url": "https://docs.slack.dev/reference/scopes/mpim.write"
      },
      {
        "name": "mpim:write.topic",
        "url": "https://docs.slack.dev/reference/scopes/mpim.write.topic"
      }
    ],
    "user": [
      {
        "name": "channels:write",
        "url": "https://docs.slack.dev/reference/scopes/channels.write"
      },
      {
        "name": "channels:write.topic",
        "url": "https://docs.slack.dev/reference/scopes/channels.write.topic"
      },
      {
        "name": "groups:write",
        "url": "https://docs.slack.dev/reference/scopes/groups.write"
      },
      {
        "name": "groups:write.topic",
        "url": "https://docs.slack.dev/reference/scopes/groups.write.topic"
      },
      {
        "name": "im:write",
        "url": "https://docs.slack.dev/reference/scopes/im.write"
      },
      {
        "name": "im:write.topic",
        "url": "https://docs.slack.dev/reference/scopes/im.write.topic"
      },
      {
        "name": "mpim:write",
        "url": "https://docs.slack.dev/reference/scopes/mpim.write"
      },
      {
        "name": "mpim:write.topic",
        "url": "https://docs.slack.dev/reference/scopes/mpim.write.topic"
      }
    ]
  }
}

