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_route [24/01/2013 14:19] zuve |
en:sidebar:remoteapi:apiref:core:create_route [07/04/2014 08:29] (current) |
====== 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>, |
===== 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 ===== |
... | ... |
}, | }, |
"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]]. |