v1

latestOpenAPI 3.0.12026-07-1372039.7 KB
WrittenQuestions

Returns a list of written questions

get/api/writtenquestions/questions

Query parameters

askingMemberIdinteger

Written questions asked by member with member ID specified

answeringMemberIdinteger

Written questions answered by member with member ID specified

tabledWhenFromstring date-time

Written questions tabled on or after the date specified. Date format yyyy-mm-dd

dateForAnswerWhenFromstring date-time

Written questions DateForAnswer on or after the date specified format yyyy-mm-dd

dateForAnswerWhenTostring date-time

Written questions DateForAnswer on or before the date specified format yyyy-mm-dd

tabledWhenTostring date-time

Written questions tabled on or before the date specified. Date format yyyy-mm-dd

answered'Any' | 'Answered' | 'Unanswered'

Written questions that have been answered, unanswered or either.

answeredWhenFromstring date-time

Written questions answered on or after the date specified. Date format yyyy-mm-dd

answeredWhenTostring date-time

Written questions answered on or before the date specified. Date format yyyy-mm-dd

questionStatus'NotAnswered' | 'AnsweredOnly' | 'AllQuestions'

Written questions with the status specified

includeWithdrawnboolean

Include written questions that have been withdrawn

expandMemberboolean

Expand the details of Members in the results

correctedWhenFromstring date-time

Written questions corrected on or after the date specified. Date format yyyy-mm-dd

correctedWhenTostring date-time

Written questions corrected on or before the date specified. Date format yyyy-mm-dd

sessionStatus'Current' | 'Any'

The Session status for which the Questions data will be returned

searchTermstring

Written questions / statements containing the search term specified, searches item content

uINstring

Written questions / statements with the uin specified

answeringBodiesinteger[]

Written questions / statements relating to the answering bodies with the IDs specified

membersinteger[]

Written questions / statements relating to the members with the IDs specified

house'Bicameral' | 'Commons' | 'Lords'

Written questions / statements relating to the House specified

skipinteger

Number of records to skip, default is 0

takeinteger

Number of records to take, default is 20

Response

Success

totalResultsinteger