Skip to main content
wangweihua
New Member
Mar 4, 2025 6:11 AM UTC
Solved

HTTP API returned 'not updated' styles data

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.
furqanhamid
furqanhamidSolution
New Participant
Mar 4, 2025 6:27 AM UTC

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

3 replies

furqanhamid
furqanhamidSolution
New Participant
Mar 4, 2025 6:27 AM UTC

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
Mar 4, 2025 7:08 AM UTC

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
Mar 4, 2025 7:10 AM UTC

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