/api/bookmark/edit/:token
Creates or Edits a Bookmark
Method
POST
Parameters
- id — (optional) the bookmark id – omitting the id will create a new bookmark
- name — (optional) bookmark name
- command — (optional) command to launch
- geometry — (optional) initial geometry
Notes:
Setting name, command or geometry to and empty string “” will delete the parameter
Returns
JSON object with the following parameters
- bookmarks — array of bookmarks (created from /api/bookmark/edit/:token)
- history — array of history (commands that have been launched recently)
- suggestions — array of suggestions (created from Server Side Suggestions)
Bookmarks, history and suggestions are JSON objects with the following format
- name — (optional) <string> display name
- geometry — <string> widthxheight or rootless
- id — <string> unique id
- command — <string> command to launch