Get Project Document

You will get project documents from here

/api/ProjectDocument/GetProjectDocuments

Query String

ParameterRequiredValue
startOptional1
orderByOptionalUser Input
isPublishedOptionalUser Input
SortByOptionalName
SortOrderOptional0(Ascending) and 1(Descending)
pinProjectIdOptional
sourceOptional
parentFolderIdOptional
startWithOptional
sessionIdOptional
sessionIdOptional

Request Header

ParameterRequiredValue
TokenKeyMandatoryUser Input
IgnorePermissionOptionalTrue/False
FromAwsOptionalTrue/False
Accept-LanguageOptionalen-US
Accept-EncodingOptionalgzip
Content-TypeMandatoryapplication/json

Response

TokenKey → Your-Key
[
  {
    "ProjectFolderID": 122260,
    "PINProjectID": 12148,
    "ProjectDocumentID": 1219685,
    "CurrentCheckOutStatus": 2,
    "DocumentTitle": "",
    "DocumentDesc": "",
    "DocumentName": "CDEF.DWF",
    "SearchTag": "",
    "OriginalFileName": "d778f3ef-b026-4bd2-a9e3-258e37f184e0",
    "OriginalExtension": ".DWF",
    "Filesize": "76684",
    "UploadStatus": 2,
    "RevisionDate": "2012-10-11T13:22:20.737",
    "RevisionNumber": 1,
    "RevisedBy": {
      "PWUserID": 12249,
      "PWAccountID": 12207,
      "PWContactID": 121455,
      "FirstName": "Ayan",
      "MiddleName": "",
      "LastName": "Ghosh",
      "Email": "[email protected]",
      "UserName": "Ayan Ghosh"
    },
    "CheckedBy": {
      "PWUserID": 12301,
      "PWAccountID": 12254,
      "PWContactID": 121541,
      "FirstName": "Srabati",
      "MiddleName": "",
      "LastName": "Sarkar",
      "Email": "[email protected]",
      "UserName": "Srabati Sarkar"
    },
    "IsMarkupExists": false,
    "Permission": {
      "Read": true,
      "Download": true,
      "Upload": false,
      "Modify": true,
      "Delete": true,
      "CheckOut": true,
      "ChangeTask": false
    },
    "Download": <DownloadUrl>,
    "AWSDownload": <AWSDownloadUrl>,
    "View": <ViewerUrl>,
    "StorageID": 100001
  }
]

Enum : Source

Property NameDescription
2 – HPPrinterUpload From HP Printer
4 – TurboAcceleratorUpload From Turbo Accelerator
5 – Html5UploaderUpload From Html 5 Uploader
16 – IPhoneUpload From iOS Device
32 – AndriodUpload From Android Device
128 – WinSyncUpload From Windows Sync
129 – MacSyncUpload From Mac Sync
130 – PSIGENUpload From PSIGEN App

Enum : StartWith

Property NameDescription
0 – NoContain Search
1 – YesSearch by Starting Letter

Enum : OrderBy

Property NameDescription
0 – CreateDateCreate Date Ascending
1 – CreateDateDescCreate Date Descending
2 – DocumentNameDocument Name Ascending
3 – DocumentNameDescDocument Name Descending

Enum : Permission

Property NameDescription
0 – NoDo not Fetch Permission Set
1 – YesFetch Permission Set

Enum : CurrentCheckOutStatus

Property NameDescription
1 – CheckedInChecked In
2 – CheckedOutChecked Out

Entity : Project Document

Property NameData Type
ProjectFolderIDInteger
PINProjectIDInteger
ProjectDocumentIDInteger
CurrentCheckOutStatusInteger
DocumentTitleString
DocumentDescString
DocumentNameString
SearchTagString
OriginalFileNameString
OriginalExtensionString
FilesizeString
UploadStatusByte [Nullable]
RevisionDateDateTime [Nullable]
RevisionNumberInteger [Nullable]
RevisionRemarksString
RevisedByUser
ExpiryDateDateTime [Nullable]
ShareLinkString
IsMarkupExistsBoolean
MarkupCountInteger [Nullable]
PathNameString
PathFolderIDString
PermissionPermission
DownloadString
AWSDownloadString
ViewString
StorageIDInteger
CustomPropertiesIEnumerable

Remarks

  1. For getting all records at a time do not add Page in request header.

  2. Use PerPage parameter to change maximum number of records per page during population of paginated data; by default, each page contains at most 10 records at a time.

  3. Add FromAWS in request header only for getting aws download url.

  4. Response header parameter Accept–Ranges will not come with paginated data and other response header parameters will not come for all records population.

  5. If the paginated result is empty, then response header parameter Max–Page will be 0 (zero) and there will be no other page related response header parameter.

  6. For getting all project related document do not add parentFolderId in query string.

  7. Add start in query string only for filtering project document by DocumentName.

  8. Add startWith in query string only for changing search criteria.

  9. Add orderBy in query string only for changing the default sorting order of the resulted list. Default sorting is by CreateDateDesc.

  10. Add permission in query string only for having Permission in response content.

  11. sessionId is optional in query string but it is mandatory when request is coming from TurboAccelerator (Source is 4).

  12. Filesize is in bytes.

  13. MarkupCount will not appear when IsMarkupExists is false.

  14. Permission in response body will only come when the value of query string parameter permission is 1 & it holds the permission for logged in user on that document.

  15. Download, AWSDownload and View in response content will contain normal download url, aws download url and viewer url respectively only when the logged in user has download permission. As well as AWSDownload will not be appear if request header does not contain FromAWS key with appropriate value or document is not present in aws.

  16. View in response body will only available for IPhone (Source is 16) and Android (Source is 32).

  17. For WinSync (Source is 128) and MacSync (Source is 129), one particular download url will be valid for downloading the document for maximum 3 (three) attempts and for others it will be invalid after first attempt.

  18. If Read is true then logged in user has permission to View the meta–information of that document, if Download is true then logged in user has permission to Download and create ShareLink of that document, if Modify is true then logged in user has permission to Update file information, if Delete is true then logged in user has permission to Delete that file, if CheckOut permission is true then logged in user has permission to CheckOut that file.

  19. Upload and ChangeTask inside Permission in response body is not related to document permission.