getFile

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

FieldTypeDescription
orgIdintOrganization ID
projectIdintProject ID
fileIdintFile ID

GET parameters

FieldTypeDescription
thumbboolOptional. 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

FieldTypeDescription
idintFile ID
dateCreationdatetimeCreation date
statusenumFile status: 'linked' (visible on the project page), 'archived' (was part of the project but was archived and is now linked to an event)
namestringFile name.
sizeintFile size in bytes.
isImagebooltrue if the file is an image, false otherwise
mimetypestringFile mimetype
urlstringFinal URL of the file.
creatorIdintCreator ID