KelvinTegelaar / AutotaskAPI

Autotask 2020.2 REST API PowerShell wrapper

Home Page:https://cyberdrain.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Unable to create ConfigurationItemAttachments or other attachments

msoukhomlinov opened this issue · comments

This issue, I suspect may be impacting the creation of attachments not only under Config Items but all other entities.

When creating a New resource, if one selects creation of ConfigurationItemAttachments, the creation fails as the URL that tries to be used is ATServicesRest/V1.0/ConfigurationItemAttachments/query (less query). This returns error and the only way I've found that creation works, need to use /ATServicesRest/V1.0/ConfigurationItems/$configItemId/Attachments structure.

New-AutotaskAPIResource.ps1 may need an update to accommodate for resources and sub-resources to be able to make this work.