03-10-2016 08:25 AM
Hi All,
I am not able to delete attachments through API. When i use Blob.RemoveFromDocument from API it only deleted the contents of file but not the entry of that attachment.
Can anyone help me on this issue.
Regards
03-10-2016 06:29 PM
Hi Kartik,
Both Blob.Remove and Document.RemoveProperty are, basically, the same. The difference is Blob.Remove has default "xpath" parameter with default value "file:content". I think you are asking about delete attachments of document, so for that, you need to make your request with the payload with correct params with xpath of file attachment, for example, to delete the first attachment of your-doc-id document:
POST $HOST/nuxeo/site/automation/Blob.Remove
POST $HOST/nuxeo/site/automation/Document.RemoveProperty
With raw-body:
{
"input": "your-doc-id",
"params": {
"xpath": "files/content[0]"
}
}
I hope this helps, VS!
03-10-2016 06:29 PM
Hi Kartik,
Both Blob.Remove and Document.RemoveProperty are, basically, the same. The difference is Blob.Remove has default "xpath" parameter with default value "file:content". I think you are asking about delete attachments of document, so for that, you need to make your request with the payload with correct params with xpath of file attachment, for example, to delete the first attachment of your-doc-id document:
POST $HOST/nuxeo/site/automation/Blob.Remove
POST $HOST/nuxeo/site/automation/Document.RemoveProperty
With raw-body:
{
"input": "your-doc-id",
"params": {
"xpath": "files/content[0]"
}
}
I hope this helps, VS!
03-11-2016 01:11 AM
Hi Victor,
03-11-2016 10:29 AM
Did you launch your request with another index of "xpath"
03-15-2016 04:47 AM
Scenario
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.