This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:sidebar:remoteapi:apiref:core:create_resource [24/01/2013 14:09] zuve |
en:sidebar:remoteapi:apiref:core:create_resource [29/11/2013 12:31] 127.0.0.1 external edit |
||
---|---|---|---|
Line 2: | Line 2: | ||
====== Create resource ====== | ====== Create resource ====== | ||
- | To create a new resource use command **core/create_resource**: | + | To create a new resource, use the command **core/create_resource**: |
<code javascript> | <code javascript> | ||
Line 12: | Line 12: | ||
===== Parameters ===== | ===== Parameters ===== | ||
^ Name ^ Description ^ | ^ Name ^ Description ^ | ||
- | | creatorId | ID of user, who will be assigned as creator for new resource | | + | | creatorId | ID of a user who will be assigned a creator for a new resource | |
- | | name | name of new resource (at least 4 characters) | | + | | name | name of a new resource (at least 4 characters) | |
- | | dataFlags | data flags for response (see [[../format/resource|Data format: Resources]])| | + | | dataFlags | data flags for the response (see [[../format/resource|Data format: Resources]])| |
===== Response ===== | ===== Response ===== | ||
Line 25: | Line 25: | ||
} | } | ||
</code> | </code> | ||
- | Format of field "item" you can see in chapter [[../format/resource|Data format: Resources]]. | + | You can find the format of “item” in the chapter [[../format/resource|Data format: Resources]]. |
|