def set_purpose(slack_client, channel, purpose):
    """
    Set the purpose of a given channel.
    """
    response = slack_client.api_call("channels.setPurpose",
                                     purpose=purpose, channel=channel)

    return response