I’ve been trying to implement the from_date & to_date arguments in my queries, but I’m always getting the same error:
array:3 y
"status" => 400
"body" => "{"errors":r{"message":"Unknown argument \\"to_date\\" on field \\"Board.updates\\".","locations":n{"line":5,"column":42}],"extensions":{"code":"GRAPHQL_VALIDATION_FAILED"}},{"message":"Unknown argument \\"from_date\\" on field \\"Board.updates\\".","locations":n{"line":5,"column":56}],"extensions":{"code":"GRAPHQL_VALIDATION_FAILED"}}]}"
"json" => array:1 y
"errors" => array:2 y
0 => array:3 y
"message" => "Unknown argument "to_date" on field "Board.updates"."
"locations" => array:1 y
0 => array:2 y
"line" => 5
"column" => 42
]
]
"extensions" => array:1 y
"code" => "GRAPHQL_VALIDATION_FAILED"
]
]
1 => array:3 y
"message" => "Unknown argument "from_date" on field "Board.updates"."
"locations" => array:1 y
0 => array:2 y
"line" => 5
"column" => 56
]
]
"extensions" => array:1 y
"code" => "GRAPHQL_VALIDATION_FAILED"
]
]
]
]
]
I am using the API version 2025-07 (as indicates the API reference website), but even trying on the API Playground I get the same error: "Unknown argument “to_date” on field “Board.updates”.
Have any of you tried successfully these new arguments?
This is the code I’m using in my PHP app:
$query = <<<'GRAPHQL'
query ($boardId: rID!], $page: Int, $from: ISO8601DateTime, $to: ISO8601DateTime ) {
boards(ids: $boardId) {
id
name
updates(limit: 100, page: $page, to_date: $to, from_date: $from) {
id
text_body
created_at
creator {
id
name
}
item_id
}
}
}
GRAPHQL;