Skip to main content
Solved

HTTP API returned 'not updated' styles data

  • March 4, 2025
  • 3 replies
  • 63 views

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!

This topic has been closed for replies.

3 replies

furqanhamid
  • New Participant
  • 6 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

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
  • 6 replies
  • 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!

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

You are welcome mate!