Sets the temporary file to a global or entity file.

POST

Links the temporary file to the specified entity or switches to a global file if the ‘EntityId’ of the model is set to null. The file is no longer a temporary file afterwards and becomes visible.

Required Permissions: Any authenticated user.

Path parameters

fileIdstringRequired

The id of the file.

Request

This endpoint expects an object.
entityIdstringOptional

The id of the entity the file should be linked to. Set to null to change the file to a global file.

entityTypestringOptional

The type of the linked entity. Necessary if EntityId is set.

Response

OK

namestringOptional

The user-specified name of the file.

descriptionstringOptional

The description of the file.

idstringOptional

The id of the file info.

entityIdstringOptional

The id of the linked entity.

fileNamestringOptional

The name of the file.

entityTypestringOptional

The name of the linked entity type.

mimeTypestringOptional

The MIME type of the file.

createdOndatetimeOptional

The date this file was created.

createdBystringOptional

The id of the user who created this file.

updatedOndatetimeOptional

The date this file was last modified.

updatedBystringOptional

The id of the user who last modified this file.

fileVersionslist of objectsOptional

List of all versions.

isCommentFilebooleanOptional

Whether the file is related to a comment.

externalProviderstringOptional

The external provider for the file. Like ‘google’ or ‘onedrive’.

externalFileUrlstringOptional

The file url of the external provider.

isHiddenForConnectUsersbooleanOptional

Whether the file is hidden for connect users.