This is mandatory with segwit but not documented.
20:43 < sipa> Lightsword: you need to pass some extra parameter to indicate the miner supports segwit
20:43 < Lightsword> sipa, how do I do that with bitcoin-cli?
20:45 < sipa> $ ./bitcoin-cli -testnet getblocktemplate '{"rules":["segwit"]}'
20:46 < wumpus> seems that's not documented in the help for the request
20:46 < wumpus> just 'capabilities' and 'mode'; 'rules' is only shown as a reply field
20:46 < sipa> though the help text does refer to https://github.com/bitcoin/bips/blob/master/bip-0009.mediawiki#getblocktemplate_changes
20:49 < sipa> but we should update the help output
Also the type of jsonrequestobject is mentioned to be a string, but it is a JSON object that needs to be passed in.