Documents

Return information on a document.

Changed on
get/api/v1/Publications/{publicationId}/Documents/{documentId}

Request

  • Base URL
    https://bills-api.parliament.uk (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Path parameters

publicationIdinteger required

Document with publication Id specified

documentIdinteger required

Document with Id specified

Response

OK

idinteger
filenamestring nullable
contentTypestring nullable
contentLengthinteger
downloadUrlstring nullable

Changes

    • info

      added the optional property to the response with the status (media type: text/plain)

    • info

      added the optional property to the response with the status (media type: application/json)

    • info

      added the optional property to the response with the status (media type: text/json)