Update Tag

Request

POST https://test-uni.cloudplan.biz/api/search/update_tag

{
    "tag_id": ...       //id of the tag
    "tag_string": ""       //(optional) the display name of the tag
    "parent_id": ""        //(optional - default: "") tag id of this tags parent
    "selections": ["", ""] //(optional - default: []) a list of strings
}

Note: can only be called by admins

Reply

{
    "result": true/false
    "reason": ...
}

Error Codes

no_tag_id
user_not_admin
tag_not_found
selections_not_allowed_for_that_type
parent_not_found
too_deep_hierarchy
bad_parent