Hello, 500 errors occurred when I was using the API.
curl --location 'https://api.figma.com/v1/files/xxxxx/variables' \
--header 'X-FIGMA-TOKEN: xxxxx' \
--header 'Content-Type: application/json' \
--data '{"variableCollections":[{"action":"DELETE","id":"VariableCollectionId:555:23333"}]}'
The response result is:
{
"status": 500,
"error": true,
"message": "Error updating file, please try again later"
}
I remember a few months ago, this was working properly, and the query was normal.
The same situation applies when adding variable data, with a status code of 500.
{
"variableCollections": [
{
"action": "CREATE",
"id": "my_variable_collection",
"name": "BRE_New_Variable_Collection",
"initialModeId": "my_mode1"
}
],
"variableModes": [
{
"action": "CREATE",
"id": "my_mode1",
"name": "chinese",
"variableCollectionId": "my_variable_collection"
},
{
"action": "CREATE",
"id": "my_mode2",
"name": "en",
"variableCollectionId": "my_variable_collection"
}
],
"variables": [
{
"action": "CREATE",
"id": "my_variable1",
"name": "bre账号名",
"resolvedType": "STRING",
"variableCollectionId": "my_variable_collection"
}
],
"variableModeValues": [
{
"variableId": "my_variable1",
"modeId": "my_mode1",
"value": "张三"
}
]
}
Thank you for your review. If there is a solution, please let me know. Thank you very much!