create_route
The create_route function is used to create new routes.
svc=core/create_route¶ms={"creatorId":<long>,
"name":"<text>",
"dataFlags":<uint>}
Parameters
Name | Description |
---|---|
creatorId | The ID of the user that should be the creator of the new route. |
name | Route name (4–50 characters). |
dataFlags | Flags with the route properties for the returned result (see the route page). |
Returned result
{
"item":{ /* route created */
...
},
"flags":<uint> /* applied flags with properties */
}
The format of the item parameter is described on the route page.
Possible error codes:
Code | Description |
---|---|
7 | Route library not loaded. |
6 | One of the following errors:
|
4 | Wrong input parameters. |