Differences
This shows you the differences between two versions of the page.
|
|
en:sidebar:remoteapi:apiref:core:create_route [29/11/2013 12:31] 127.0.0.1 external edit |
en:sidebar:remoteapi:apiref:core:create_route [07/04/2014 08:29] |
{{indexmenu_n>10}} | |
====== Create route ====== | |
| |
To create a new route, use the command **core/create_route**: | |
<code javascript> | |
svc=core/create_route¶ms={"creatorId":<long>, | |
"name":<text>, | |
"dataFlags":<uint>} | |
</code> | |
| |
===== Parameters ===== | |
^ Name ^ Description ^ | |
| creatorId | ID of a user who will be assigned a creator for a new route | | |
| name | new route name (at least 4 characters) | | |
| dataFlags | data flags for the response (see [[../format/route|Data format: Routes]])| | |
| |
===== Response ===== | |
<code javascript> | |
{ | |
"item":{ /* route created */ | |
... | |
}, | |
"flags":<unit> /* applied data flags */ | |
} | |
</code> | |
You can find the format of “item” in the chapter [[../format/route|Data format: Routes]]. | |