Redgate Data Modeler

Import a Physical Data Model as XML

The API allows you to import the model as an XML file, either as a completely new document or to an existing document. In the latter case, you can overwrite existing data (using the overwrite option) or add new objects to those already existing in the document (using the add option).

These API functions are equivalent to user interface functions: "My Data Modeler -> Create new document" and "Import -> Import from XML". Import can apply to both physical and logical models.

All the API methods described below require:

    1. An authorization header with a username equal to $TOKEN and an empty password in the format Authorization: basic (base64($TOKEN:))
    2. An accept header with a JSON mime type: Accept: application/json
    3. A content type header with a JSON mime type: Accept: text/xml

Didn't find what you were looking for?