Sugar Network/API: Difference between revisions
| Line 213: | Line 213: | ||
To control cloned content, there are API commands: | To control cloned content, there are API commands: | ||
<div id="PUT_favorite"></div> | |||
'''PUT''' /''RESOURCE''/''GUID''?cmd='''favorite''' | '''PUT''' /''RESOURCE''/''GUID''?cmd='''favorite''' | ||
| Line 218: | Line 220: | ||
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 | <div id="PUT_clone"></div> | ||
'''PUT''' /''RESOURCE''/''GUID''?cmd='''clone'''[&force][&nodeps] | |||
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. | 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. If {{Code|nodeps}} was specified, do not assure that all {{Code|GUID}} dependencies are installed in the system and clone {{Code|GUID}} resource as-is. | ||
=== Launch activities === | === Launch activities === | ||