Skip to main content

Hi, I am trying to duplicate 3 boards every 2 weeks (so not running into the limit) using python.


Running the code does not yield any error but the board is not duplicated. Any ideas what I should do?


def duplicate_board(board_id, name):
query = 'mutation ($name: String!) { duplicate_board(board_id:'+str(board_id)+', duplicate_type: duplicate_board_with_structure, board_name: $name) {board {id} }}'
vars = {
'name' : name
}

data = {'query' : query, 'variables' : vars}
r = requests.post(url=apiUrl, json=data, headers=headers) # make request
print(r.json())

Solved, it was a stupide issue with the board_id


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.