Differences
This shows you the differences between two versions of the page.
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) |
svc=core/create_resource¶ms={"creatorId":<long>, | svc=core/create_resource¶ms={"creatorId":<long>, |
"name":<text>, | "name":<text>, |
"dataFlags":<uint>} | "dataFlags":<uint>, |
| "skipCreatorCheck":<bool>} |
</code> | </code> |
| |
| 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 ===== |
... | ... |
}, | }, |
"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]]. |