Creates a file from an upload id.

After a file has been uploaded to an upload URL generated from the <see cref="T:Awork.Files.Service.Feature.FileUpload.Endpoints.PostGenerateUploadURL" /> endpoint, this endpoint can be used to create a file tasktemplate from the uploaded file by providing the upload id. <Check title="Required Permissions" icon="key">Any authenticated user.</Check>

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

tasktemplateIdstringRequiredformat: "uuid"
The id of the tasktemplate to attach the file to.

Request

The model describing the uploaded file metadata.
uploadIdstringRequired>=1 character
The id of the temporary container that the file will be uploaded to.
fileNamestringRequired>=1 character
The name of the file that will be uploaded.
descriptionstring or nullOptional
The description of the file.

Response

OK
namestring or null

The user-specified name of the file.

descriptionstring or null
The description of the file.
idstringformat: "uuid"
The id of the file info.
entityIdstring or nullformat: "uuid"
The id of the linked entity.
fileNamestring or null
The name of the file.
entityTypestring or null
The name of the linked entity type.
mimeTypestring or null
The MIME type of the file.
createdOndatetime
The date this file was created.
createdBystringformat: "uuid"
The id of the user who created this file.
updatedOndatetime
The date this file was last modified.
updatedBystringformat: "uuid"
The id of the user who last modified this file.
fileVersionslist of objects or null
List of all versions.
isCommentFileboolean
Whether the file is related to a comment.
externalProviderstring or null
The external provider for the file. Like 'google' or 'onedrive'.
externalFileUrlstring or null
The file url of the external provider.
isHiddenForConnectUsersboolean
Whether the file is hidden for connect users.

Errors

404
Not Found Error