Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Enable PowerUp API

I wanted to created a custom field on Trello board. So, I used below REST API as per Trello documentation.

https://api.trello.com/1/customFields?modelType=board&name="Total"&type=number&pos=bottom&key={key}&token={token}&idModel={boardId}

This throw an error saying power up is not enabled for the board.

So, I tried to enable power up with below API.

https://api.trello.com/1/boards/{boardId}/powerUps?value=customFields&Key={Key}&token={token}

Now I key "invalid key" error. 410 unauthorized error. I am passing key and token in query param. And for all API like board create, card, list everything works fine. But for it doesn't work for power up enable through API. Any suggestion?

 

 

1 answer

1 accepted

0 votes
Answer accepted
Iain Dooley Community Leader May 25, 2020

@Gaurav Srivastava you don't post the name customFields you need to pass the id of the customFields powerup, you can see my enableCustomFields function in Trellinator here:

https://github.com/iaindooley/trellinator-libs/blob/master/Board.js#L633

Thank you @Iain Dooley If you see the documentation https://developer.atlassian.com/cloud/trello/rest/#api-boards-id-powerUps-post this confuses somewhat.

curl --request POST \ --url 'https://api.trello.com/1/boards/{id}/powerUps?value={value}'

where value can be calendarcardAgingrecapvoting.

Iain Dooley Community Leader May 25, 2020

@Gaurav Srivastava the only valid values listed for that endpoint are:

calendarcardAgingrecapvoting

I see. Seems that is not valid too.

 

Untitled.png

So, trying with pluginId with this URL

https://api.trello.com/1/boards/{boardId}/boardPlugins?idPlugin={customFieldId}&key={Key}&token={token}. Getting "The requested resource was not found." Seems something is missing my end.

Iain Dooley Community Leader May 25, 2020

@Gaurav Srivastava well I can tell you with 100% certainty that the function I have written works, so keep trying ;)

Like Gaurav Srivastava likes this

You are 100% correct. I gave wrong boardId. My bad. Appreciate your help. :)

Like Iain Dooley likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Trello

📹 What is Trello?

Hello Community!  My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. I'll be sharing with you a series of videos with my top tips on how to best use Trello...

846 views 14 30
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you