GET PlanCare2Api/Documents/MyDepartments/Content?documentId={documentId}

Get the content of a MyDepartments document.

Requires 'Start' permission for function Documents {1EF42D55-A0FE-49F0-91C3-CD03DD18D244}

Request Information

URI Parameters

Name Description Type Additional information
documentId

Document identifier.

integer

Required

Body Parameters

None.

Response Information

Resource Description

The document content.

DocumentContent
Name Description Type Additional information
OriginalFilename

Filename the document original was given. Should be 0 for new instance

string

-

Name

Name of the document

string

-

Content

Base64encoded content of the document

Collection of byte

-

Response Formats

application/json, text/json

Sample:
{
  "OriginalFilename": "sample string 1",
  "Name": "sample string 2",
  "Content": "QEA="
}

application/xml, text/xml

Sample:
<DocumentContent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DHS.PlanCare.Web.Api.Interface.Documents">
  <Content>QEA=</Content>
  <Name>sample string 2</Name>
  <OriginalFilename>sample string 1</OriginalFilename>
</DocumentContent>