AiFilesControllerPutLooseFile - метод

Put the file with content into AI cache, and start a requested operation with such a file. If a file with the same content is already added, then it is reused from the cache.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
C#
[HttpPutAttribute("loose")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[DisableRequestSizeLimitAttribute]
[ConsumesAttribute("application/octet-stream", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<AiFileOperationResponse>> PutLooseFile(
	[FromBodyAttribute] Stream contentStream,
	[FromQueryAttribute] string name,
	[FromQueryAttribute] AiFileRequestOperation operation = AiFileRequestOperation.AsIs,
	CancellationToken cancellationToken = default
)

Параметры

contentStream  Stream
Request body contains the file contents.
name  String
File name with extension.
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.

См. также