From: Harmon Date: Mon, 24 May 2021 14:14:37 +0000 (-0500) Subject: Update and improve documentation for API.update_list X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fc5314d4eac4c5bde9e9d86db6fe6cb6c87e61e8;p=tweepy.git Update and improve documentation for API.update_list --- diff --git a/tweepy/api.py b/tweepy/api.py index 5ff20a6..05bc33f 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1982,17 +1982,30 @@ class API: Updates the specified list. The authenticated user must own the list to be able to update it. - :param list_id: |list_id| - :param slug: |slug| - :param name: The name for the list. - :param mode: |list_mode| - :param description: The description to give the list. - :param owner_screen_name: |owner_screen_name| - :param owner_id: |owner_id| + Parameters + ---------- + list_id + |list_id| + slug + |slug| + name + The name for the list. + mode + |list_mode| + description + The description to give the list. + owner_screen_name + |owner_screen_name| + owner_id + |owner_id| - :rtype: :class:`List` object + Returns + ------- + :class:`~tweepy.models.List` - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/post-lists-update + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/post-lists-update """ return self.request( 'POST', 'lists/update', endpoint_parameters=(