Change the comment of attribute

pull/176/head
Armīns Palms 2018-01-18 15:17:52 +02:00
parent aff57876bc
commit aaf18fa3c8
1 changed files with 5 additions and 0 deletions

View File

@ -902,6 +902,11 @@ class PyMISP(object):
query = {"to_ids": to_ids}
return self.__query('edit/{}'.format(attribute_uuid), query, controller='attributes')
def change_comment(self, attribute_uuid, comment):
"""Change the comment of attribute"""
query = {"comment": comment}
return self.__query('edit/{}'.format(attribute_uuid), query, controller='attributes')
# ##############################
# ###### Attribute update ######
# ##############################