Skip to main content
wangweihua
New Member
March 4, 2025
Solved

HTTP API returned 'not updated' styles data

  • March 4, 2025
  • 3 replies
  • 169 views

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.

This topic has been closed for replies.
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!

3 replies

furqanhamid
New Participant
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!

furqan
wangweihua
New Member
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
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!

furqan