AiRagControllerPutCollection - метод
Saves changes for a specific collection.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.3+85077ef6104b2e81389e52f8b825d77905da3c54
[HttpPutAttribute("collections/{id:guid}")]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult> PutCollection(
[FromRouteAttribute] Guid id,
[FromBodyAttribute] AiRagCollection collection,
CancellationToken cancellationToken = default
)
<HttpPutAttribute("collections/{id:guid}")>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function PutCollection (
<FromRouteAttribute> id As Guid,
<FromBodyAttribute> collection As AiRagCollection,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult)
public:
[HttpPutAttribute(L"collections/{id:guid}")]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult^>^ PutCollection(
[FromRouteAttribute] Guid id,
[FromBodyAttribute] AiRagCollection^ collection,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPutAttribute("collections/{id:guid}")>]
[<TypedJsonBodyAttribute>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member PutCollection :
[<FromRouteAttribute>] id : Guid *
[<FromBodyAttribute>] collection : AiRagCollection *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult>
- id Guid
- The unique identifier of the collection to save.
- collection AiRagCollection
- The collection with changed values.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskActionResult
Only editable fields are applied.