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

REST-API Docs out of date

Wolfie February 2, 2024

So I am using the REST-API, and with every link, (example: 

https://api.trello.com/1/checklists/{id}/cards), always returns "The requested resource was not found." for me

1 answer

0 votes
David Bakkers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 2, 2024

Hello @Wolfie

The error you're getting comes as no surprise, given that to lookup a checklist on a card you would use:

 

... exactly as it says in the completely up to date and correct documentation for that endpoint
Wolfie February 2, 2024

Thats exactly what I'm using, but it returns an error


```py

import requests
import json
id = "THE ID"

headers = {
  "Accept": "application/json"
}

query = {
  'key': 'THE KEY',
  'token': 'THE TOKEN'
}


response = requests.request(
   "GET",
   url,
   headers=headers,
   params=query
)

print(response.text)    
```

I replaced the values in here, but in my code, its that
David Bakkers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 2, 2024

In your Python code shown above:

I can see nothing in your declaration of the url variable that would cause the '{id}' to be substituted with an actual ID of an actual card, something like:
url = f"https://api.trello.com/1/cards/4d5ea62fd7etcetc/checklists
where '4d5ea62fd7etcetc' was an actual ID of an actual card.
I get the feeling that maybe you should spend some more time learning about how to use Python in general. Do a Google search on 'trello rest api python examples' to get started.
Have fun.
Wolfie February 2, 2024

I know Python. I use an f-string for the URL var

Wolfie February 2, 2024

Ohhh wait, the ID is an ID of a card

Wolfie February 2, 2024

Wait no

Wolfie February 2, 2024

I have been using Python for years

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events