Fix optional field in patron api