docs
docs copied to clipboard
Get document id by file id
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?
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) ?
Sure, a better endpoint delivering the missing information sounds good as well.
renaming /file/id/versions to /file/id which returns something like this is fine.
{
"versions": {},
"document_id": "id"
}