AiFilesControllerPutVirtualCardFile - метод

Put the virtual file into AI cache, and start a requested operation with such a file. Returns Status403Forbidden if file is inaccessible, or if there is a physical file with the same version identifier.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
C#
[HttpPutAttribute("virtual/{fileId:guid}")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<AiFileOperationResponse>> PutVirtualCardFile(
	[FromRouteAttribute] Guid fileId,
	[FromQueryAttribute] string type,
	[FromQueryAttribute] string name,
	[FromQueryAttribute] long? size = null,
	[FromQueryAttribute] AiFileRequestOperation operation = AiFileRequestOperation.AsIs,
	CancellationToken cancellationToken = default
)

Параметры

fileId  Guid
Version identifier of a virtual file to put into AI cache.
type  String
Virtual file type name.
name  String
Virtual file name.
size  NullableInt64  (Optional)
Virtual file size in bytes or null/negative value if virtual file has undetermined size.
operation  AiFileRequestOperation  (Optional)
Operation to be performed alongside putting the file in AI cache.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

Возвращаемое значение

TaskActionResultAiFileOperationResponse
Status and access info on a file in AI cache.

См. также