10,849
edits
(→Methods: add ExportProject and ImportProject) |
No edit summary |
||
Line 448: | Line 448: | ||
</Response></syntaxhighlight> | </Response></syntaxhighlight> | ||
=== | === POST ExecuteMultiple === | ||
Allow to execute specified operations on multiple entities, such as Create, Update, Upsert and Delete. | Allow to execute specified operations on multiple entities, such as Create, Update, Upsert, and Delete. | ||
* ContinueOnError – Determine whether to continue executing operation on error. | * ContinueOnError – Determine whether to continue executing an operation on error. | ||
* TransactionType – Determine transaction operation: | * TransactionType – Determine transaction operation: | ||
* None – execute multiple will not run in transaction | * None – execute multiple will not run in a transaction | ||
* RollbackOnError – execute multiple transaction will roll back on error | * RollbackOnError – execute multiple transaction will roll back on error | ||
* CommitOnError – execute multiple transaction will commit on error | * CommitOnError – execute multiple transaction will commit on error | ||
Line 510: | Line 510: | ||
</MultipleResponse></syntaxhighlight> | </MultipleResponse></syntaxhighlight> | ||
=== POST ExportProject === | |||
POST: | |||
<code>https://server/rest/v1/data/{organization}/ExportProject?$id={id}</code> | |||
<code>https://server/rest/v1/data/{organization}/ExportProject?$name={name}</code> | |||
Project {id} or project {name}. | |||
Response: Binary project data. | |||
=== POST ImportProject === | |||
POST: | |||
<code>https://server/rest/v1/data/{organization}/ImportProject?id={id}&publish={publish}</code> | |||
<code>https://server/rest/v1/data/{organization}/ImportProject?name={name}&publish={publish}</code> | |||
BODY: | |||
Binary project data. | |||
Project {id} or project {name}, project must exist! | |||
{publish} – "true" to publish the project | |||
[[Category:Resco Cloud]] | [[Category:Resco Cloud]] |