Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Trello API - Update Cards on Multiple Boards - What is the Key and Token?

mydeqtechteam
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 15, 2020

Hi, 

I have a program to update cards on multiple boards using the Trello API. I have tested and it works on a couple of boards that I have access on (using my developer API Key and Token). I now need to update the cards on Boards that I directly do not have access on (private boards in my Organization). How do I generate the Key / Token to be able to do this ?

1 answer

0 votes
Iain Dooley
Community Champion
May 16, 2020

@mydeqtechteam are you doing this from a power up? If so you just need to get the user to authenticate:

https://developer.atlassian.com/cloud/trello/guides/power-ups/authentication/#using-t-authenticate

Permissions in the API are governed by the token  you pass in, and each API key can have multiple tokens authenticated against it.

Udai Inuganti
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 16, 2020

Thanks for the response @Iain Dooley Is it possible to generate a token per board ? This will enable my Developer Key to only update certain boards. How would I be able to do that? The above API is not for a Power-up but integrating Trello with an external system.

Iain Dooley
Community Champion
May 18, 2020

@Udai Inuganti not that I'm aware of, you can only use read or write in the scope parameter, and you can't specify that a given token has access only to a subset of boards within the authorising account.

That's my experience and I can't find any documentation to the contrary, but you might also like to ask in the developer community:

https://community.developer.atlassian.com/c/trello?_ga=2.172649891.1445675984.1584322869-299049771.1576052240

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events