

def _update(app_id, properties, force):
    '\n    :param app_id: the id of the application\n    :type app_id: str\n    :param properties: json items used to update resource\n    :type properties: [str]\n    :param force: whether to override running deployments\n    :type force: bool\n    :returns: process return code\n    :rtype: int\n    '
    client = marathon.create_client()
    client.get_app(app_id)
    properties = _parse_properties(properties)
    deployment = client.update_app(app_id, properties, force)
    emitter.publish('Created deployment {}'.format(deployment))
    return 0

dataset/ETHPy150Open dcos/dcos-cli/cli/dcoscli/marathon/main.py _update/original