Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 31 additions & 2 deletions docs/API_v1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,41 @@ A poll newly created will look like this.
```

### Add/update option (date poll)
Add a single option
```json
{
"timestamp": 1589195823,
"duration": 1800
"option":
{
"text": "",
"timestamp": 1589195823,
"duration": 1800
}
}
```
Add with sequence options (like in the UI)
````json
{
"option":
{
"text":"",
"timestamp":1761343200,
"duration":86400
},
"sequence":
{
"unit":
{
"id":"day",
"value":"day",
"name":"Day",
"timeOption":false
},
"stepWidth":1,
"repetitions":0
},
"voteYes":false
}
````

### Keys and values
| Key | Type | description |
Expand Down