Skip to main content
Question

Files nodes parameter depth=0 ignored

  • October 21, 2024
  • 0 replies
  • 16 views

Bogriceanu_Sorin

When using the nodes endpoint form the REST files API, setting the depth to 0 seems to have no effect.
Response comes with all children, as if the depth was not set.

Is this the desired behaviour?

I was expecting just the node I called.

Ofc, I can set depth to 1, but in this use case I could avoid getting a lot of children.

Here is the actual url I query:

> https://api.figma.com/v1/files/mquoV4EwJmfRiTf61u3JsV/nodes?ids=911:73249&plugin_data=shared&depth=0

This topic has been closed for replies.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings