Sugar Network/API: Difference between revisions
| Line 201: | Line 201: | ||
* {{Code|clone}} ''int''<br>cloning status: {{Code|0}}, not cloned; {{Code|1}}, cloning is in progress; {{Code|2}} resource is cloned. | * {{Code|clone}} ''int''<br>cloning status: {{Code|0}}, not cloned; {{Code|1}}, cloning is in progress; {{Code|2}} resource is cloned. | ||
To control | To control cloned content, there are API commands: | ||
'''PUT''' /''RESOURCE''/''GUID''?cmd='''favorite''' | '''PUT''' /''RESOURCE''/''GUID''?cmd='''favorite''' | ||
| Line 207: | Line 207: | ||
Change favorite status. {{Code|PUT}} content should be favorite status. | Change favorite status. {{Code|PUT}} content should be favorite status. | ||
'''PUT''' /''RESOURCE''/''GUID''?cmd='''clone'''[&force= | '''PUT''' /''RESOURCE''/''GUID''?cmd='''clone'''[&force=1] | ||
Change cloning status for the specified resource. {{Code|PUT}} content should be cloning status. If {{Code| | Change cloning status for the specified resource. {{Code|PUT}} content should be cloning status. If {{Code|force}} is passed, cloning will happen even if local copy already exists. | ||
=== Launch activities === | === Launch activities === | ||