AnsweredAssumed Answered

500 error while adding tags using Rest Api

Question asked by abhi1o3 on Oct 30, 2018
Latest reply on Nov 3, 2018 by jpotts

Hi

I am hiting below post method to add a tags.

POST/alfresco/service/api/node/{store_type}/{store_id}/{Id}/tags

request body-

["test"]

 

response-

{
"status": {
"code": 500,
"name": "Internal Error",
"description": "An error inside the HTTP server which prevented it from fulfilling the request."
},
"message": "09300061 Wrapped Exception (with status template): 093065371 Error during processing of the template 'The following has evaluated to null or missing:\n==> tags [in template \"org/alfresco/repository/tagging/node.tags.post.json.ftl\" at line 2, column 16]\n\nTip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)??\n\nThe failing instruction:\n==> #list tags as tag [in template \"org/alfresco/repository/tagging/node.tags.post.json.ftl\" at line 2, column 9]'. Please contact your system administrator.",
"exception": "",
"callstack": [],
"server": "Community v5.2.0 (re21f2be5-b22) schema 10,057",
"time": "Oct 30, 2018 3:07:02 PM"
}

 

please help me to resolve the error.

Outcomes