Changes

Jump to navigation Jump to search
230 bytes added ,  21:39, 24 November 2012
Line 48: Line 48:  
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 be changed (by users already mentioned in the {{Code|authority}} property) by the following commands:
+
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|author]] property which is a dictionary of ''User'' guids and integers with roles information. Authority can be changed (by users already mentioned in the {{Code|author}} property) by the following commands:
    
  '''PUT''' /''RESOURCE''/''GUID''?cmd='''useradd'''&user=''USER''&role=''ROLE''
 
  '''PUT''' /''RESOURCE''/''GUID''?cmd='''useradd'''&user=''USER''&role=''ROLE''
   −
Add another user who can modify the corresponding object.
+
Add another user who can modify the corresponding object. ''USER'' argument should be either ''User'' guid (for authors registered in the Sugar Network), or, full author name.
    
  '''PUT''' /''RESOURCE''/''GUID''?cmd='''userdel'''&user=''USER''
 
  '''PUT''' /''RESOURCE''/''GUID''?cmd='''userdel'''&user=''USER''
   −
Remove user from the authority list. It is not possible to remove yourself.
+
Remove user from the authority list. It is not possible to remove yourself. ''USER'' argument should be either ''User'' guid (for authors registered in the Sugar Network), or, full author name.
    
''TODO''
 
''TODO''

Navigation menu