Get one document by id.
Get one document by id.
Authorization
bearerAuth AuthorizationBearer <token>
Access token from POST /directory/connect/token. Scope olifyapi.
In: header
Path Parameters
id*string
Format
uuidHeader Parameters
Olify-Tenant-Id*string
Tenant GUID the caller is allowed to access.
Format
uuidResponse Body
DocumentDetailapplication/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/documents/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Olify-Tenant-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "currentUserPermissions": { "create": true, "delete": true, "edit": true, "read": true }, "versionAttachments": [ { "attachment": { "downloadToken": { "attachmentId": "96b9bbac-86d3-4497-9e0c-1f8e3803eddb" }, "originalFileName": "string", "fileExtension": "string", "fileSize": "string", "timestamp": "2019-08-24T14:15:22Z", "user": { "ownerOrganizationId": "f4e37a4f-df3b-45fa-93e9-483786baa4f4", "userName": "string", "person": { "ownerOrganizationId": "f4e37a4f-df3b-45fa-93e9-483786baa4f4", "firstName": "string", "lastName": "string", "company": { "name": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "tenantUserId": "317fdf58-24a9-48e5-8924-89e6013f4093", "tenantUser": { "isAppUser": true, "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda", "company": { "roles": [ "Manufacturer" ], "identificationNumber": "string", "emailAddress": "string", "phoneNumber": "string", "address": { "streetAddress1": "string", "streetAddress2": "string", "streetAddress3": "string", "city": "string", "cityDistrict": "string", "postalCode": "string", "coordinates": { "latitude": "string", "longitude": "string" }, "countryCode": "string" }, "extensionValues": {}, "name": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "isSoftDeleted": true, "sortableFullName": "string", "avatarAttachmentId": "4f97b030-3bac-45e5-82f0-8fdcfd120829", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "documentVersion": "string", "attachmentType": "Primary", "metadata": { "property1": [ [ null ] ], "property2": [ [ null ] ] }, "created": "2019-08-24T14:15:22Z", "createdBy": { "ownerOrganizationId": "f4e37a4f-df3b-45fa-93e9-483786baa4f4", "userName": "string", "person": { "ownerOrganizationId": "f4e37a4f-df3b-45fa-93e9-483786baa4f4", "firstName": "string", "lastName": "string", "company": { "name": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "tenantUserId": "317fdf58-24a9-48e5-8924-89e6013f4093", "tenantUser": { "isAppUser": true, "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda", "company": { "roles": [ "Manufacturer" ], "identificationNumber": "string", "emailAddress": "string", "phoneNumber": "string", "address": { "streetAddress1": "string", "streetAddress2": "string", "streetAddress3": "string", "city": "string", "cityDistrict": "string", "postalCode": "string", "coordinates": { "latitude": "string", "longitude": "string" }, "countryCode": "string" }, "extensionValues": {}, "name": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "isSoftDeleted": true, "sortableFullName": "string", "avatarAttachmentId": "4f97b030-3bac-45e5-82f0-8fdcfd120829", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" } } ], "path": "string", "name": "string", "description": "string", "documentVersion": "string", "created": "2019-08-24T14:15:22Z", "lastChange": "2019-08-24T14:15:22Z", "createdBy": { "ownerOrganizationId": "f4e37a4f-df3b-45fa-93e9-483786baa4f4", "userName": "string", "person": { "ownerOrganizationId": "f4e37a4f-df3b-45fa-93e9-483786baa4f4", "firstName": "string", "lastName": "string", "company": { "name": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "tenantUserId": "317fdf58-24a9-48e5-8924-89e6013f4093", "tenantUser": { "isAppUser": true, "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda", "company": { "roles": [ "Manufacturer" ], "identificationNumber": "string", "emailAddress": "string", "phoneNumber": "string", "address": { "streetAddress1": "string", "streetAddress2": "string", "streetAddress3": "string", "city": "string", "cityDistrict": "string", "postalCode": "string", "coordinates": { "latitude": "string", "longitude": "string" }, "countryCode": "string" }, "extensionValues": {}, "name": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "isSoftDeleted": true, "sortableFullName": "string", "avatarAttachmentId": "4f97b030-3bac-45e5-82f0-8fdcfd120829", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "lastModifiedBy": { "ownerOrganizationId": "f4e37a4f-df3b-45fa-93e9-483786baa4f4", "userName": "string", "person": { "ownerOrganizationId": "f4e37a4f-df3b-45fa-93e9-483786baa4f4", "firstName": "string", "lastName": "string", "company": { "name": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "tenantUserId": "317fdf58-24a9-48e5-8924-89e6013f4093", "tenantUser": { "isAppUser": true, "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda", "company": { "roles": [ "Manufacturer" ], "identificationNumber": "string", "emailAddress": "string", "phoneNumber": "string", "address": { "streetAddress1": "string", "streetAddress2": "string", "streetAddress3": "string", "city": "string", "cityDistrict": "string", "postalCode": "string", "coordinates": { "latitude": "string", "longitude": "string" }, "countryCode": "string" }, "extensionValues": {}, "name": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "isSoftDeleted": true, "sortableFullName": "string", "avatarAttachmentId": "4f97b030-3bac-45e5-82f0-8fdcfd120829", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "documentFolderId": "7b1a2b3f-2524-4e05-8b89-7cd6a7e89e2f", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"}