Skip to main content

HELP Duplicating board with API

  • February 17, 2022
  • 2 replies
  • 1067 views

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())
This topic has been closed for replies.

2 replies

  • Author
  • New Participant
  • February 20, 2022

Solved, it was a stupide issue with the board_id


  • February 27, 2022

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