Skip to main content

Duplicate a board with V2 API

  • August 6, 2019
  • 27 replies
  • 5798 views

basdebruin

Is there any demand for full duplication of a board using the V2 API? I would like to create boards (out of templates) from my Wordpress site and then assign users and guests to the newly created boards. Any ideas?

This topic has been closed for replies.

27 replies

dipro
Forum|alt.badge.img
  • Leader
  • August 6, 2019

Hey @basdebruin! Being able to create a new board from a template is on our roadmap – can you tell me more about your use case? Are you looking to create a new board when someone submits a request through your Wordpress site?


basdebruin
  • Author
  • Community Expert
  • August 6, 2019

Hi Dipro,
Good to read it’s on your roadmap. My solution is for bid management, to support one bid I need 4 boards (all have different column layouts). What I want to achieve is to enter the name of a new bid on my Wordpress site and through the V2 API create the 4 boards out of existing templates. I have read through the V2 documentation and it seems to me that you can’t control which statuses will be available in a status column (including order and color), therefore having a template which everything setup is the only sensible way of doing this.

I created another topic here to see if there are other users that need user inheritance from e.g. the folder level). It is kind of annoying I have the invite (guest) users to my bid for each of the 4 boards separately.


basdebruin
  • Author
  • Community Expert
  • August 7, 2019

Hi @dipro, When creating a board from a template through the web interface I get all the goodies from the template, like automatons, permissions, status values (and order / colors) etc. Is this also expected to work through the API?
Also, do you have any idea of a time frame when this will be added to the API interface?
FYI: I have a webform (Elementor Pro Form) that allows me to hook into php code in WordPress and from that php code I am calling the V2 API. So, on my website users can create boards and add users it.


basdebruin
  • Author
  • Community Expert
  • October 9, 2019

Hi @dipro

Any chance you can give an estimate timeline for these API V2 enhancements:

  • duplicate existing board and/or template
  • add/remove users to a board
  • set the owner(s) of a board

Many thanks


mramos
  • New Participant
  • October 10, 2019

Hi @dipro @basdebruin

I need the same feature. I posted a ticket a few months ago but still waiting. Addition webhook too and still waiting.

The duplicated board function is ready on the frontend, is noy difficult replicate this function on the api. Come on!!

Thanks


dipro
Forum|alt.badge.img
  • Leader
  • October 17, 2019

Hey @basdebruin and and @mramos,

I don’t have an update or ETA on these improvements, but thanks for pinging us! I know this is an important feature for you (and a number of other users) and it’s something we’re working on.

Thanks for your patience! 🔮
Dipro


Ayelet
Forum|alt.badge.img
  • monday.com Team Member
  • November 17, 2019

Hey @basdebruin @mramos,
Just letting you know we recently added the ability to create board from template!
This is how you can use it:

mutation {
  create_board(board_name: "my board", board_kind: public, template_id: 105719725){
    id
  }
}

You can use your own account templates or our predefined templates.
If you want to use your own template the template id is the board id.
We also added an indication in our template store letting you know each template’s id.
It looks like this:
image
You can get this feature by enabling the “developer mode” in monday.labs
image


basdebruin
  • Author
  • Community Expert
  • November 17, 2019

Really cool stuff, works like a charm.

Also had a discussion on this with @dipro. Because this function is working from template boards (not just any board to duplicate) it is even more important that templates can hold board permissions, see also Board permissions in template - #3


basdebruin
  • Author
  • Community Expert
  • November 29, 2019

Hi @dipro and API team,

I think there is a small bug with using template boards from the V2 API.

When I create a board from a template with the V2 API updates that exists in the template are not copied over to the newly create board.

When I use the normal web interface and create a new board from the same template the updates are copied over to the newly created board.

So, there is a difference between creating a board from template between the web interface and the V2 API.


basdebruin
  • Author
  • Community Expert
  • September 28, 2020

Hi @Ayelet

It looks like something has changed with regards to templates. I do not see the template id’s (predefined templates) anymore. Am I missing something or is this important feature lost in an update?


tpaktop
  • Participating Frequently
  • September 29, 2020

Have the same issue now. How to see template_ids?


dsilva
Forum|alt.badge.img
  • Participating Frequently
  • September 29, 2020

Hey @basdebruin @tpaktop - checking in with the team on this one. I’ll followup here.

-Daniel


Ayelet
Forum|alt.badge.img
  • monday.com Team Member
  • October 1, 2020

Hey @basdebruin @tpaktop,
It was indeed lost in the new template store - sorry about that! will be fixed very soon!


dsilva
Forum|alt.badge.img
  • Participating Frequently
  • October 1, 2020

Hey @basdebruin @tpaktop,

This should be resolved now! Please let me know if you’re still seeing this.

-Daniel


basdebruin
  • Author
  • Community Expert
  • October 1, 2020

hi @dsilva

Where can I find the template id in the new template store?

Also: are there any plans to find templates (account templates) through the API? I know you can supply a template id in the API call to create a boards, but I don’t know how to get the template id (board id). Am I missing something here?


dsilva
Forum|alt.badge.img
  • Participating Frequently
  • October 1, 2020

Hey @basdebruin,

The template ID will appear on pre-made templates or account templates. They can be found when adding the template from the template center:

As for finding the template ID for account templates - there isn’t a straight forward way of doing that right now, however I might have a workaround for you. When you save one of your boards as an account template, the account ID becomes the template ID. If you were to have your boards named in a certain way that you would know they’re templates, you could query for the board ID and use that.

-Daniel


basdebruin
  • Author
  • Community Expert
  • October 2, 2020

Hi @dsilva

I must be missing something. When I go to the template center I don’t see the template id’s, see:

Also not understanding what you mean that the account id becomes the template id. I have several account templates and I am using the baoradid of these templates as template id’s. Are you saying that boards saved as templates get another template id?


dsilva
Forum|alt.badge.img
  • Participating Frequently
  • October 2, 2020

Hey @basdebruin,

Could you try clicking on one of the templates in the template center? It should appear for the board templates we provide by default.

Also not understanding what you mean that the account id becomes the template id. I have several account templates and I am using the baoradid of these templates as template id’s. Are you saying that boards saved as templates get another template id?

Let’s say that you create a brand new board on your account and the board ID is 12345. If you were to turn this board into a template on your account, the template ID for this board would be 12345.

Although we don’t have the ability to query the API for template IDs, you are able to create boards if you already know the template ID:

mutation {
  create_board(board_name: "my board", board_kind: public, template_id:12345) {id}}

My suggestion for a workaround was to use some kind of naming scheme for the boards you are converting into a template, that way you would be able to find it using the existing boards query and get the board ID from there:
image

Admittedly, this is a bit of a hacky workaround - it would also rely on you having kept the board which the template was created from. But this would be one possible workaround to accomplish this in the meanwhile.

As mentioned even though we don’t have a native way of querying template IDs right now, I did pass it along internally to our dev team to see if this something we can support down the line to make this process more streamline.

Hope this helps!

-Daniel


basdebruin
  • Author
  • Community Expert
  • October 2, 2020

Hi @dsilva

When I click one of the templates, it still does not show the template id. See:

For me, not having the ability to query template boards is far more important. I do understand the proposed workaround but that is not a real solution for me.

Hope your dev team adds the ability to query account template boards very soon.


basdebruin
  • Author
  • Community Expert
  • October 8, 2020

Hi @dsilva

With regards to getting a list of (account) templates through the PAI I am wondering how you doe it yourself in the automation recipe “When status change … create a new board”. In this automation you can select to create a board from a list of templates. This is exactly what I need to do in a custom recipe.

We were told that all the existing automation recipes can be replicated with the use of custom integrations, but I can’t figure out how to replicate this one.


AlexSavchuk
Forum|alt.badge.img
  • monday.com Team Member
  • October 8, 2020

@basdebruin

That’s quite odd - I’ll take a closer look at this with the developers on my end, as I was able to see my own account template IDs. One thing I’d like to clarify is if you are seeing the template IDs for individual templates, for example, the Team Tasks template in your account?

Just to clarify on this a bit further, some templates in the template store are Solutions, AKA combo-templates, meaning that they include multiple boards and thus are not supported by using our API. I’ll talk to the team to perhaps state that in the template store somewhere, as it might make sense to clear that up 🙂

-Alex


basdebruin
  • Author
  • Community Expert
  • October 8, 2020

hi @AlexSavchuk

I just checked and I now do see the id’s for the prebuild templates. Looks something has changed in the template centre, so this part is good news 🙂

The other part is to get a list of (account) templates through the API. As shown in my previous post on this topic the builtin automation does do exactly what I want. Therefore I am wondering how to replicate this.


AlexSavchuk
Forum|alt.badge.img
  • monday.com Team Member
  • October 8, 2020

@basdebruin

Thank you for checking that out so quickly, that’s awesome 🙂

To be transparent with you, I just checked our internal planning board and while I’ve posted the template ID suggestion to the team, it seems like we haven’t been able to include this in our schedule just yet. I’ll make sure to point that one out as a useful and welcome change to the API, and hopefully, we’ll be able to implement this in the future.

-Alex


Reg
  • Leader
  • October 8, 2020

sorry to hijack, i have been trying to do this exact thing, but using Integromat with a HTTP Request.

using the following request:
{
“query”: “mutation create_board {board_name: “Test”, board_kind: public, template_id: xxxxxxxx}”
}

I keep getting a 400 error.

could anyone help?


dsilva
Forum|alt.badge.img
  • Participating Frequently
  • October 8, 2020

Hey @Reg,

Usually a 400 error is due to the query string being passed along to the API.

Could you make sure your query string is passed with the “query” key? Also I would make sure your request is a POST with JSON body, with no unterminated strings.

-Daniel