How to get attachments of a ticket by API

Post Reply
rschneider
Posts: 7
Joined: 30. Mar 2023, 15:18
Contact:

How to get attachments of a ticket by API

Post by rschneider » 21. Apr 2023, 11:29

Hello,

I want to get all attachments of a ticket/incident/...

Therefore I'm calling
api/filestorage/{entity}/{objectid}/{bindattribute}?excludedfileids={excludedfileids}

But I'm struggling with the parameters:
{entity}: is this the name of the ticket/incident _type_? (e.g. 'SPSActivityTypeIncident')
{objectId}: is this the ID property of a ticket/incident/...?
{bindAttribute}: what's that? I don't understand the description "The name of the attribute the data belongs to.": can someone give me a hint?

The excludedfileids will get obvious as soon as I get a response, I guess.

Can someone help me with the parameters?

Thank you and
Best regards,
Rolf

rschneider
Posts: 7
Joined: 30. Mar 2023, 15:18
Contact:

Re: How to get attachments of a ticket by API

Post by rschneider » 21. Apr 2023, 13:04

It was my own stupidity:

{entity} is indeed the type name like SPSActivityTypeIncident, {objectId} is e.g. the ticket GUID, and {bindAttribute} was not necessary.
My fault was to use invoke-webrequest in PowerShell instead of Invok-RestMethod...

BR
Rolf

Post Reply

Return to “General”

Who is online

Users browsing this forum: No registered users and 2 guests