Sugar Network/API: Difference between revisions
| Line 47: | Line 47: | ||
Read-only access is available for anonymous requests, except special content like machine serial numbers. But to proceed any changes, clients need to be authenticated. | Read-only access is available for anonymous requests, except special content like machine serial numbers. But to proceed any changes, clients need to be authenticated. | ||
Right after creating any Sugar Network object, its author becomes the only user who can process any object modifications afterwards. Authority information will be auto set in [[#Sugar_Network_resources|authority]] property which is a dictionary of ''User'' guids and integers with roles information. Authority can changed (by users already mentioned in {{Code|authority}} property) by the following commands: | |||
'''PUT''' /''RESOURCE''/''GUID''?cmd='''useradd'''&user=''USER''&role=''ROLE'' | |||
Add another user who can modify the corresponding object. | |||
'''PUT''' /''RESOURCE''/''GUID''?cmd='''userdel'''&user=''USER'' | |||
Remove user from the authority list. It is not possible to remove yourself. | |||
''TODO'' | ''TODO'' | ||