def update_token(api_key, uuid, tags=None): "Update the tags for a given token" data = {} if tags is not None: data['tags'] = map(lambda uuid: _get_object_uri('tag', uuid), tags) return _update_object(api_key, "token", uuid, data)
def update_item(api_key, uuid, name=None, url=None, custom=None, trackable=None, content=None): "Update an item, identified by @uuid" data = {} if name is not None: data["name"] = name if url is not None: data["url"] = url if custom is not None: data["custom"] = custom if trackable is not None: data["trackable"] = trackable if content is not None: data["content"] = content return _update_object(api_key, "item", uuid, data)
def update_item(api_key, uuid, name=None, url=None, custom=None, trackable=None, content=None, tags=None): "Update an item, identified by @uuid" data = {} if name is not None: data["name"] = name if url is not None: data["url"] = url if custom is not None: data["custom"] = custom if trackable is not None: data['trackable'] = trackable if content is not None: data['content'] = content if tags is not None: data['tags'] = map(lambda uuid: _get_object_uri('tag', uuid), tags) return _update_object(api_key, "item", uuid, data)
def update_item(api_key, uuid, name=None, url=None, custom=None, trackable=None, content=None): "Update an item, identified by @uuid" data = {} if name is not None: data["name"] = name if url is not None: data["url"] = url if custom is not None: data["custom"] = custom if trackable is not None: data['trackable'] = trackable if content is not None: data['content'] = content return _update_object(api_key, "item", uuid, data)
def update_collection(api_key, uuid, name=None): "Update the collection name, identified by @uuid" data = {} if name is not None: data["name"] = name return _update_object(api_key, "collection", uuid, data)