OLYMPIA, Wash. — A coalition of news organizations led by The Associated Press sued the Washington Legislature on Tuesday, challenging lawmakers’ claim that a tweak made more than two decades ago to the state’s public records law excludes them from stricter disclosure rules that apply to other elected officials and agencies.

Hundreds of important records are being withheld by the state House and Senate, the lawsuit says, depriving the public of information essential to knowing what is going on in state government.

“The public has a right to know what its elected officials are doing behind closed doors,” AP Managing Editor Brian Carovillano said.

All U.S. states have some form of public disclosure laws, but many state lawmakers claim they are at least partially exempt. In a 2016 nationwide survey, a majority of top Republican and Democratic state lawmakers asserted they were not legally required to comply with open-records requests from AP seeking copies of their daily schedules and government emails.

Without access to such records, it’s harder for the public to know who is trying to influence their state lawmakers on important policy decisions, which groups and individuals they are meeting with and what the priorities are as they debate spending tens of billions of dollars each year in tax money.

Washington Secretary of the Senate Hunter Goodman and Chief Clerk of the House Bernard Dean issued a brief statement in response to emailed requests for comment that the AP sent to legislative leaders and the attorneys for the political caucuses.

“We are aware of the lawsuit, but we have consistently advised members and staff not to comment on pending litigation,” Goodman and Dean wrote in a joint email.

The lawsuit focuses on how the Washington Legislature interprets a 1995 revision to a 1971 definition of legislative records. Lawyers for the House and Senate regularly cite that change as a reason to withhold records, arguing that most lawmaker records — including calendars and text messages — are not considered public.

That is despite voters overwhelmingly passing an initiative in 1972 that affirmed the public’s right to “full access to public records so as to assure continuing public confidence in fairness of elections and governmental processes, and so as to assure that the public interest will be fully protected.”

The lawsuit argues that legislative lawyers’ interpretation of the 1995 change is wrong and legal action “is necessary to establish the Legislature did not reverse the will of the people in Initiative I-276 and remove or narrow its reach to the very elected individuals with which that initiative was so deeply concerned.”

Toby Nixon, a Kirkland City Council member and president of the Washington Coalition of Open Government, said lawmakers should be held to the same standard on public records as city and county leaders.

“How can we as citizens know that our elected officials are making good decisions if we don’t have access to the same information they are using to make those decisions?” Nixon asked.

Besides the AP, the groups involved in the lawsuit are: public radio’s Northwest News Network, KING-TV, KIRO 7, Allied Daily Newspapers of Washington, The Spokesman-Review, the Washington Newspaper Publishers Association, Sound Publishing, Tacoma News Inc. and The Seattle Times.

The news organizations filed requests for records from all 147 Washington lawmakers earlier this year, seeking calendars that show whom they met with and how they spent their workdays during the regular and special legislative sessions from January through June. The coalition also sought text messages that were sent or received as part of their legislative duties.

While most forwarded the requests to their chamber’s attorneys, a few responded directly. At least one lawmaker seemed unaware that reporters have previously been thwarted in such requests.

Democratic Rep. Mike Sells used his response as an opportunity to criticize the request as a “sad comment on the state of our press.”

“(Five) months down the road and you are asking for this stuff for 5 months back when you (the press overall) should have been on top of it in the first place,” Sells wrote in an email.

Democratic Rep. Gerry Pollet released his whole calendar, writing in an email that “openness and disclosure regarding my public duties are vital for media and public accountability.”

Democratic Rep. Mike Pellicciotti also unveiled his full calendar, as well as text messages with his legislative assistant.

“These legislative records are in the public interest, and so I am voluntarily providing them as requested,” Pellicciotti wrote, adding he hoped his colleagues would do the same.

Lawyers for the Senate and House responded on behalf of the other lawmakers, saying that under the state’s definition of legislative records, the calendars and most text messages are not public records.

They forwarded a sole text that was a cellphone picture of one lawmaker’s per diem form. Lawmaker expenses and per diems are considered public records and regularly released when requested.

A second round of requests made by the media coalition’s attorney in July repeated the request for calendars and texts and sought additional information, including documentation of staff complaints against lawmakers over the past five years.

Legislative lawyers reiterated that the documents sought were not considered public records, but voluntarily released a few documents that had previously been reported on by the media groups, including a disciplinary letter to a state representative related to the treatment of a staffer.

Pellicciotti released additional calendar information and texts, and Democratic Rep. Kristine Reeves released her daily calendar.

The state Supreme Court ruled in 2013 that the governor can claim “executive privilege” as a reason to withhold some documents, but Gov. Jay Inslee releases emails, schedules and other documents when requested.

Inslee’s office did not comment directly on the lawsuit, but spokeswoman Tara Lee said in an email that the governor and his staff “place a high priority on transparency and openness, crucial components of public service.”