logo

Back to Help Home Page.

GET Api/Reports/{reportId}/Documents

Gets the documents linked to the provided report.

Remarks

This method will only return documents when the status of the report is 'Completed'. Otherwhise a 404 (Not found) will be returned, including a message with the current flowstatus.

Request Information

URI Parameters

NameDescriptionTypeAdditional information

reportId

The identifier of the report.

integer

Required

Body Parameters

None.

Response Information

Resource Description

A list of documents.

Collection of ChappReport.Site.Areas.Api.Models.V1.ReportDocumentV1ModelResponse
NameDescriptionTypeAdditional information

Id

The id of the document.

integer

None.

Url

The uri where the document data can be retrieved.

string

None.

Type

The type of the document. Possible values: Report, LongList, ShortList, JobList, Addendum, Settlement

string

None.

Created

The date the document was created.

date

None.

FileName

the localized document filename

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Url": "http://rental.chapps.com/Reports/1/Documents/1",
    "Type": "Report",
    "Created": "0001-01-01T00:00:00"
  },
  {
    "Id": 2,
    "Url": "http://rental.chapps.com/Reports/1/Documents/2",
    "Type": "ShortList",
    "Created": "0001-01-01T00:00:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfReportDocumentV1ModelResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChappReport.Site.Areas.Api.Models.V1">
  <ReportDocumentV1ModelResponse>
    <Created>0001-01-01T00:00:00</Created>
    <FileName i:nil="true" />
    <Id>1</Id>
    <Type>Report</Type>
    <Url>http://rental.chapps.com/Reports/1/Documents/1</Url>
  </ReportDocumentV1ModelResponse>
  <ReportDocumentV1ModelResponse>
    <Created>0001-01-01T00:00:00</Created>
    <FileName i:nil="true" />
    <Id>2</Id>
    <Type>ShortList</Type>
    <Url>http://rental.chapps.com/Reports/1/Documents/2</Url>
  </ReportDocumentV1ModelResponse>
</ArrayOfReportDocumentV1ModelResponse>