Add dates or times to a poll
add_optionsAdd more candidate dates or times to a WhichDateWorks poll the user organizes, for example when the group asks for another weekend. Pass the poll's manageUrl from create_poll, and dates for a poll of all-day dates or times for a poll of time slots, all in the future. Options the poll already has are skipped. Everyone who already voted keeps their votes and can vote on the new options.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"manageUrl": "<manageUrl>"
},
"name": "add_options"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dates | No | All-day options to add, as YYYY-MM-DD, for a poll of dates. The poll can have up to 100 options in all. | |
| times | No | Time slots to add, for a poll of times. The poll can have up to 100 options in all. | |
| duration | No | Default length of each time slot in minutes. Defaults to 60. | |
| timeZone | No | IANA time zone the times are in. Defaults to the poll's own time zone. | |
| manageUrl | Yes | The poll's manageUrl from create_poll (https://app.whichdateworks.com/claim/…), or the token at its end. The invite link won't work here. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| added | Yes | The options added; ones the poll already had are skipped. | |
| title | Yes | ||
| pollId | Yes | ||
| status | Yes | ||
| options | Yes | Every option the poll now has. | |
| reopened | Yes | The poll had closed by itself and reopened for the new options. |