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_route [24/01/2013 14:19] zuve |
en:sidebar:remoteapi:apiref:core:create_route [07/04/2014 06:29] mast |
||
---|---|---|---|
Line 2: | Line 2: | ||
====== Create route ====== | ====== Create route ====== | ||
- | To create a new route use command **core/create_route**: | + | To create a new route, use the command **core/create_route**: |
<code javascript> | <code javascript> | ||
svc=core/create_route¶ms={"creatorId":<long>, | svc=core/create_route¶ms={"creatorId":<long>, | ||
Line 11: | Line 11: | ||
===== Parameters ===== | ===== Parameters ===== | ||
^ Name ^ Description ^ | ^ Name ^ Description ^ | ||
- | | creatorId | ID of user, who will be assigned as creator for new user | | + | | creatorId | ID of a user who will be assigned a creator for a new route | |
| name | new route name (at least 4 characters) | | | name | new route name (at least 4 characters) | | ||
- | | dataFlags | data flags for response (see [[../format/route|Data format: Routes]])| | + | | dataFlags | data flags for the response (see [[../format/route|Data format: Routes]])| |
===== Response ===== | ===== Response ===== | ||
Line 21: | Line 21: | ||
... | ... | ||
}, | }, | ||
- | "flags":<unit> /* applied data flags */ | + | "flags":<uint> /* applied data flags */ |
} | } | ||
</code> | </code> | ||
- | Format of field "item" you can see in chapter [[../format/route|Data format: Routes]]. | + | You can find the format of “item” in the chapter [[../format/route|Data format: Routes]]. |
|