Merge pull request #176 from kirzaks/master

Change the comment of attribute
pull/178/head
Raphaël Vinot 2018-01-19 10:04:34 +01:00 committed by GitHub
commit 46a675a5ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 ######
# ##############################