What does GETting the contents of an attachment return through the web api?
Does this just return the text or information within the attachment? For example if I GET a txt file, does it just return the text within the file? Or does this download the file/make it accessible? I need to download PDFs from tickets for an archival service, but keep running into issues and can't quite sort this out. Thanks.
Asked by Troy Lopez
on Thu 8/3/23 12:21 PM
Sign In to leave feedback or contribute an answer
Answer (1)
This answer has been marked as the accepted answer
Brittany Renn
Thu 8/3/23 12:29 PM
Hi Troy,
It just returns the following properties:
You should be able to view the full returns information, here:
https://[insert your URL here]/TDWebApi/Home/type/TeamDynamix.Api.Attachments.Attachment
Best,
Brittany Renn
TDX Support
No feedback
Sorry, to clarify I meant the contents of an attachment, like this https://solutions.teamdynamix.com/TDWebApi/Home/section/Attachments#GETapi/attachments/{id}/content
The docs mention the file contents, but I'm not sure if this is the file itself or just the text within. - Troy Lopez Thu 8/3/23 12:31 PM
The docs mention the file contents, but I'm not sure if this is the file itself or just the text within. - Troy Lopez Thu 8/3/23 12:31 PM
I believe it gets the raw binary file content. You may be able to save the contents to a disk yourself through whichever program you have that calls the API, but as far as the contents actually retrieved from that endpoint, its just the file content.
- Brittany Renn
Thu 8/3/23 3:35 PM