Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:sidebar:remoteapi:apiref:core:create_resource [29/11/2013 12:31]
127.0.0.1 external edit
en:sidebar:remoteapi:apiref:core:create_resource [18/06/2015 18:58] (current)
Line 7: Line 7:
 svc=core/​create_resource&​params={"​creatorId":<​long>,​ svc=core/​create_resource&​params={"​creatorId":<​long>,​
  "​name":<​text>,​  ​      "​name":<​text>,​  ​    
- "​dataFlags":<​uint>​}+ "​dataFlags":<​uint>, 
 +                                 "​skipCreatorCheck":<​bool>}
 </​code>​ </​code>​
  
Line 15: Line 16:
 | name | name of a new resource (at least 4 characters) | | name | name of a new resource (at least 4 characters) |
 | dataFlags | data flags for the response (see [[../​format/​resource|Data format: Resources]])| | dataFlags | data flags for the response (see [[../​format/​resource|Data format: Resources]])|
 +| skipCreatorCheck | special flag (see below), 1 - enable|
 +
 +:!: Clarification for ''​skipCreatorCheck'':​ if non-account user created items then it is impossible to create account for such user later; in order to create resource for such user please use skipCreatorCheck=1. The flag is used for that case only. Such limitation exists to protect one's hierarchy.
  
 ===== Response ===== ===== Response =====
Line 22: Line 26:
  ...   ...
  },  },
- "​flags":<​unit> /* applied data flags */+ "​flags":<​uint> /* applied data flags */
 } }
 </​code>​ </​code>​
 You can find the format of “item” in the chapter [[../​format/​resource|Data format: Resources]]. You can find the format of “item” in the chapter [[../​format/​resource|Data format: Resources]].
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam