0

According to the Autodesk Forge references, a folder is "a logical organization of items within a project". So that means that a folder contains several items.

But the webservice to create an item looks like that:

POST /data/v1/projects/{project_id}/items

This web-request only takes the project-id into account. But there seems to be no way, to provide the folder-id. So how can I create an item in a specific folder?

1 Answer 1

1

When creating an item, you need to pass (among other things) the parent folder id:

  // ......
  relationships: {
    // .....
    parent: {
      data: {
        type: "folders",
        id: FOLDER_ID_HERE
      }
    }
  }
  // ......
Sign up to request clarification or add additional context in comments.

1 Comment

Oh. Thanks Augusto (again)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.