Resco CRM Connector: Difference between revisions

Jump to navigation Jump to search
Line 537: Line 537:
 </Response>
 </Response>
</MultipleResponse></syntaxhighlight>
</MultipleResponse></syntaxhighlight>
=== POST Export ===
Export the organization data and metadata.
Sample URL:
<code><nowiki>https://{organization}.rescocrm.com/rest/v1/data/{organization}/Export</nowiki></code>
Example of a body request:
<syntaxhighlight lang="xml">
<ExportRequest>
    <Type>Metadata Data Localization Process Plugin Project</Type>
    <Entities>
        <!-- records of these entities will be exported -->
        <Entity>account</Entity>
        <Entity>contact</Entity>
    </Entities>
</ExportRequest>
</syntaxhighlight>
Type defines what should be exported, e.g if you want to export projects only: <Type>Project</Type>
If you want to export all, use <Type>All</Type>
Response: stream
=== POST Import ===
Import the organization data and metadata.
Sample URL:
<code><nowiki>https://{organization}.rescocrm.com/rest/v1/data/{organization}/Import?mode={mode}&publish={publish}</nowiki></code>
Mode:
* Import = 0 - Apply changes from import schema, but do not remove missing entities or attributes
* Update = 2 - Apply changes from import schema, but remove missing entities or attributes to match exactly imported schema. Loss of data may occur on removed entities or attributes.
Publish:
* true - import will be applied
* false - preview only (what will be changed/imported)
Example of a body request: Add exported stream to the request


=== POST ExportProject ===
=== POST ExportProject ===

Navigation menu