Skip to main content
Solved

HTTP API returned 'not updated' styles data


wangweihua

I’ve already fixed typo of a color style variable name from Bg-Reverse-A00 to Bg-Reverse-A100
 

But still got old JSON data:
```bash
 curl -H "X-Figma-Token: <my-token>" "https://api.figma.com/v1/files/<my-file-id>/styles"
```
 

I tried to suffix the URL with “?timestamp=random_number” but still got the same old data.

Best answer by furqanhamid

Figma's API might be caching the old data. Ensure the styles are published after renaming. Try using v1/files/<file-id>?version=latest to force an update. Making a small edit or reopening the file can also refresh the data. Check for API rate limits, if issue is still persisting!

View original

3 replies

furqanhamid
  • New Participant
  • 5 replies
  • Answer
  • March 4, 2025

Figma's API might be caching the old data. Ensure the styles are published after renaming. Try using v1/files/<file-id>?version=latest to force an update. Making a small edit or reopening the file can also refresh the data. Check for API rate limits, if issue is still persisting!


wangweihua
  • Author
  • New Member
  • 1 reply
  • March 4, 2025
furqanhamid wrote:

Figma's API might be caching the old data. Ensure the styles are published after renaming. Try using v1/files/<file-id>?version=latest to force an update. Making a small edit or reopening the file can also refresh the data. Check for API rate limits, if issue is still persisting!

Thank you! Appending “?version=latest” works!


furqanhamid
  • New Participant
  • 5 replies
  • March 4, 2025
wangweihua wrote:
furqanhamid wrote:

Figma's API might be caching the old data. Ensure the styles are published after renaming. Try using v1/files/<file-id>?version=latest to force an update. Making a small edit or reopening the file can also refresh the data. Check for API rate limits, if issue is still persisting!

Thank you! Appending “?version=latest” works!

You are welcome mate!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings