avatar rickblalock Pro Jun 27. 2010. 6:24 pm
Regarding this documentation: http://www.activecollab.com/docs/manuals/developers/api/attachments

Is there a way to tell if an object has an attachment, that way you don't have to make an api call for every single object loaded, just to see if an object has an attachment.
avatar Ilija Studen Staff Jun 28. 2010. 5:23 am
Hello,

Currently there's no way to check if object has attachments without calling a separate API request, sorry. We'll consider this for the upcoming releases.
avatar rickblalock Pro Jun 28. 2010. 6:10 am
Thanks for responding. Bummer.

Is ere a way to extend the API via a module? I've actually never looked in to how they are built but just curious if that would be possible.
avatar Ilija Studen Staff Jun 28. 2010. 7:58 am
Hello,

Sorry, just rechecked the docs - if object has attachments, they will be available as part of API response when you request a single object. For example, check out ticket details call.

Existing API actions can't be extended with modules, but you can define new API responses that can return any type of data you want.
avatar rickblalock Pro Jun 28. 2010. 8:04 am
Ah I missed the ticket one, cool! You can't do it with discussions though. http://www.activecollab.com/docs/manuals/developers/api/discussions#discussion

nor with comments.