Is there an API for automating parent/child indentation from a form?



I am trying to create a smartsheet that automatically indents child rows from a form submission. Right now, there is a main "parent" form, then a linked "child" form that creates a new row under the first, but they all come in at the same level of hierarchy.

I'm looking to automate the indentation because there are column formulas in the sheet that require the parent child relationship in order to work, and manually indenting the rows is going to be time consuming and prone to error given the number of daily submissions.

If anyone has any guidance here, it would be greatly appreciated!!