cancel
Showing results for 
Search instead for 
Did you mean: 

Trashcan get node with specific aspect

AdrienL
Champ in-the-making
Champ in-the-making

Hello

I am using Alfresco Community 7.3 from an external client with the REST API. I can't find how to make a REST query to retrieve a list of documents from the Trashcan by filtering on aspects. Unless I'm mistaken, alfresco/api/-default-/public/alfresco/versions/1/deleted-nodes does not allow it.

Thanks for your help

1 ACCEPTED ANSWER

AdrienL
Champ in-the-making
Champ in-the-making

Here the solution if someone need it

https://spelddp-ged-admin-test.lausanne.ch/alfresco/api/-default-/public/search/versions/1/search
{
"query": {
"language": "afts",
"userQuery": "admin",
"query": " +TYPE:\"cm:content\" AND monaspect:author:\"moi\" "
},
"include": [ "properties" ],
"includeRequest": false,
"scope": { "locations": ["deleted-nodes" ]}
}

View answer in original post

2 REPLIES 2

JA
Champ in-the-making
Champ in-the-making

I've same issue , i would like filter in trashcan with aspect value using rest api

AdrienL
Champ in-the-making
Champ in-the-making

Here the solution if someone need it

https://spelddp-ged-admin-test.lausanne.ch/alfresco/api/-default-/public/search/versions/1/search
{
"query": {
"language": "afts",
"userQuery": "admin",
"query": " +TYPE:\"cm:content\" AND monaspect:author:\"moi\" "
},
"include": [ "properties" ],
"includeRequest": false,
"scope": { "locations": ["deleted-nodes" ]}
}