'Update the specified container\'s configuration.
:param unicode name: A unique identifier for the container within
the Flocker cluster.
:param unicode node_uuid: The address of the node on which the
container will run.
:return: An ``EndpointResponse`` describing the container which has
been updated.'

@app.route('/configuration/containers/<name>', methods=['POST'])
@user_documentation(u'\n                                This    will    lead    to    the    container    being    relocated    to    the    specified    host\n                                and    restarted.    This    will    also    update    the    primary    host    of    any    attached\n                                datasets.\n                                ', header=u"Update    a    named    container's    configuration", examples=[u'move    container'], section=u'container')
@structured(inputSchema={'$ref': '/v1/endpoints.json#/definitions/configuration_container_update'}, outputSchema={'$ref': '/v1/endpoints.json#/definitions/configuration_container'}, schema_store=SCHEMAS)
def update_containers_configuration(self, name, node_uuid):

    deployment = self.persistence_service.get()
    node_uuid = UUID(hex=node_uuid)
    target_node = deployment.get_node(node_uuid)
    for node in deployment.nodes.itervalues():
        application = node.applications.get(name)
        if application:
            deployment = deployment.move_application(application, target_node)
            saving = self.persistence_service.save(deployment)
            def saved(_, application=application):
                result = container_configuration_response(application, node_uuid)
                return EndpointResponse(OK, result)
            saving.addCallback(saved)
            return saving
    raise CONTAINER_NOT_FOUND
