Skip to main content
Question

Files nodes parameter depth=0 ignored

  • October 21, 2024
  • 0 replies
  • 27 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.