Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
attachmentFilter
attachmentFilter

Filter for getting project-only attachments & attachments that belong to a particular attachment-type
  • The normal attachment GET call (i.e projects/<project_id>/attachments) returns all the attachments inside a project i.e it iterates through all the objects inside a project and returns everything. If we want to retrieve the only the attachments that belongs to the project directly, then use ?projectOnly=true filter (i.e projects/<project_id>/attachments?projectOnly=true)
  • The normal attachment GET call (i.e projects/<project_id>/attachments) returns the attachments of all types (i.e including Allplan attachments like AllplanDrawing, AllplanLayout etc.,) If we want to retrieve the attachments that doesn't include Allplan or other CAD based files then use ?attachmentType=NonModel filter (i.e projects/<project_id>/attachments?attachmentType=NonModel) If we want to retrieve the attachments that belongs to particular attachment type, then specify the type in the filter ?attachmentType=<filter_type> (eg: projects/<project_id>/attachments?attachmentType=ifc) The pre-defined attachment types are Thumbnail, Ifc, SketchUp, AllplanResource, AllplanDrawing, AllplanLayout, AllplanLayoutDocument, AutodeskResource, Revit, AutoCadDrawing.