How do I rename a file through the API?
PATCH the file with the lockVersion you read and the new name:
curl -s -X PATCH "https://app.usetalewright.com/v1/workspaces/$WORKSPACE/files/$FILE" \
-H "Authorization: Bearer $TALEWRIGHT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"expectedLockVersion": 3, "name": "logo-dark-2026.svg"}'