Skip to content

How to obtain a variable by VariableID #45

@justquanyin

Description

@justquanyin

Now, The way to obtain a Variable Data , I must to call /v1/files/:file_key/variables/local , But I only have a VariableID in a file detail

example

"fills": [
                            {
                                "opacity": 0.80000001192092896,
                                "blendMode": "NORMAL",
                                "type": "SOLID",
                                "color": {
                                    "r": 0.0,
                                    "g": 0.0,
                                    "b": 0.0,
                                    "a": 1.0
                                },
                                "boundVariables": {
                                    "color": {
                                        "type": "VARIABLE_ALIAS",
                                        "id": "VariableID:xxxx/1234:5"
                                    }
                                }
                            }
                        ],

How can I obtain the color variable by Figma Rest API when I don't know the library file's file_key

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions