From f6fe04fbaa0813875d8f2bac959b61d66e5f6268 Mon Sep 17 00:00:00 2001 From: Dan Lowe Date: Sat, 20 Aug 2016 19:56:37 -0400 Subject: [PATCH] Add support for creating public boards --- trello/trelloclient.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/trello/trelloclient.py b/trello/trelloclient.py index 4d18cf64..40fe951e 100644 --- a/trello/trelloclient.py +++ b/trello/trelloclient.py @@ -120,13 +120,14 @@ def get_board(self, board_id): obj = self.fetch_json('/boards/' + board_id) return Board.from_json(self, json_obj=obj) - def add_board(self, board_name, source_board=None, organization_id=None): + def add_board(self, board_name, source_board=None, organization_id=None, permission_level='private'): """Create board :param board_name: Name of the board to create :param source_board: Optional Board to copy + :param permission_level: Permission level, defaults to private :rtype: Board """ - post_args={'name': board_name} + post_args={'name': board_name, 'prefs_permissionLevel': permission_level} if source_board is not None: post_args['idBoardSource'] = source_board.id if organization_id is not None: