import json


def getNuxeoPayload(docType, name, properties):
    """ Returns the Nuxeo REST API payload to create a document"""
    return '{ "entity-type": "document", "name":"%s", "type": "%s","properties": %s}' % (
        name, docType, json.dumps(properties, ensure_ascii=False))