docs icon indicating copy to clipboard operation
docs copied to clipboard

Get document id by file id

Open alexanderadam opened this issue 3 years ago • 3 comments
trafficstars

It would be great if it would be possible to get Dokument id by File ids. It seems that the versions API call already delivers some metadata (such is mimetype, creation date, name and file id) but the document id is missing.

Or should that already be possible somehow?

alexanderadam avatar Jan 03 '22 11:01 alexanderadam

It would feel strange to add this information to an endpoint that is about version, maybe it should be added to a new /file/:id endpoint with all the data related to a file (in this case I'm not sure /file/id/versions should be kept or if it should be replaced by the new endpoint that has all metadata + the versions) ?

archiloque avatar Sep 07 '23 14:09 archiloque

Sure, a better endpoint delivering the missing information sounds good as well.

alexanderadam avatar Sep 09 '23 19:09 alexanderadam

renaming /file/id/versions to /file/id which returns something like this is fine.

{
  "versions": {},
  "document_id": "id"
}

jendib avatar Sep 09 '23 20:09 jendib