Logo
Siemens Xcelerator Developer Portal API Documentation

Downloads a document based on document Id

GET {{baseUrl}}/public/api/projects/v1/dbs/:dbid/projects/:projid/documents/:docid?overlayid=<string>&lcid=<string>&export_type=<string>

The supplied document ID can refer to documents of various types:

  • a plain COMOS document (including reports)
  • a DDM (= versioned) document (in this case the latest version will be retrieved)
  • a particular version of a DDM (= versioned) document
  • a revision (in this case the parameter docid technically refers to COMOS device)
  • a redlining document of a revision
  • an additional document of a revision

 

Body PARAM

Key Datatype Required Description 
overlayid
string Working Overlay Id
lcid
string Language Id
export_type
string Export type. At the moment the types 'report2pdf' and 'report2excel' are supported. Note that docid must refer to a report in this case.



HEADERS

Key Datatype Required Description 
Comos-API-Session
string (Required) Comos SessionId that needs to be passed with every request except Login
Accept
string




RESPONSES

status OK

Curl
curl -X GET '//public/api/projects/v1/dbs/:dbid/projects/:projid/documents/:docid?overlayid=<string>&lcid=<string>&export_type=<string>?overlayid=<string>&lcid=<string>&export_type=<string>' -H 'Comos-API-Session: <string>' -H 'Accept: application/json'

ENDPOINTS