Attachment API

Remove attachment from content (un-link)

OVERVIEW

 

This method is used to un-link attachment from particular content (not the actual delete of attachment from system).

 

DELETE /api/4/attachments/{attachmentid}?contenttype={contenttype}&contentid={contentid}

 

Parameter Name Parameter Value Description
attachmentid number Attachment id which is already linked in provided content id.
contenttype String

Content type allows below options,

  • Wiki
  • Blog
  • Tasks
  • Events
  • Comments
contentid number

This the content id of the required content. e.g

blogid for contenttype=blog, taskid for contenttype=tasks

Request Body

no request body required

 

Response Body

The methods returns a 200 http response in case of a successful request otherwise an error object is returned. 

Comments


0 Comments

Last Updated: Nov 08,2024