Post

2 followers Follow
0
Avatar

How to unlink files of workitem using Rest API?

Hi,
I am able to delete files using Rest API.
But I want to unlink Files of workitem using Rest API.

How to achieve this?
Any help would be greatly appreciated.

Regards,
Ravikanth A

Ravikanth Answered

Official comment

Avatar

There is a link between files and workItem called WorkItemAttachmentLink. If you have the ID of this link, you can simply delete it to unlink them.
There are multiple ways to find this link: querying this type directly or using a relation query.

Eyal Post
Comment actions Permalink

Please sign in to leave a comment.

1 comment