HELP Duplicating board with API

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 =, json=data, headers=headers) # make request

Solved, it was a stupide issue with the board_id

1 Like

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