Description
Returns the final URL of a file. This URL could be used for 20 minutes.
The current user must have access to the project.
URL
https://api.skriv.com/v1/project/getFile/orgId/projectId/fileId
Field | Type | Description |
orgId | int | Organization ID |
projectId | int | Project ID |
fileId | int | File ID |
GET parameters
Field | Type | Description |
thumb | bool | Optional. If the file is an image and this parameter set to true, the redirection will point to a thumbnail version of the image. This parameter is ignored if the file is not an image. |
Response
Field | Type | Description |
id | int | File ID |
dateCreation | datetime | Creation date |
status | enum | File status: 'linked' (visible on the project page), 'archived' (was part of the project but was archived and is now linked to an event) |
name | string | File name. |
size | int | File size in bytes. |
isImage | bool | true if the file is an image, false otherwise |
mimetype | string | File mimetype |
url | string | Final URL of the file. |
creatorId | int | Creator ID |