cancel
Showing results for 
Search instead for 
Did you mean: 

Add a tag with RESTful API

pyt
Champ on-the-rise
Champ on-the-rise
Hello,

I want to add a tag with RESTful API.
I know the HTTP request I have to send but not what arguments I have to append to my the request.

This is the request:

http://localhost:8080/alfresco/service/api/node/{store_type}/{store_id}/{id}/tags

This is my json string I am appending to my request:

{
"id" : "879486de-77c5-463f-8768-7e44baaeefc8",
"tag" : "test"
}


Every time I send my request with Google Chromes Dev HTTP Client I receive this error message:

"status":{
"code":500,
"name":"Internal Error",
"description":"An error inside the HTTP server which prevented it from fulfilling the request."
}


How does my json string has to look like? And is it possible to add a tag to a node which has not the "taggable" aspect? If not, how do I add the taggabel with REST API?

Thanks
pyt
2 REPLIES 2

marco_altieri
Star Contributor
Star Contributor
You can send a post to the webscript:
/alfresco/service/collaboration/tagActions

with the following parameter:
a   add
n   f229a7b8-30fa-4565-96e6-a8b7aa5f8161
t   testtag

pyt
Champ on-the-rise
Champ on-the-rise
It works!
Great Smiley Happy

Thank you