Save card with its files contents. Similar to request PostStore(CardStoreRequest, CancellationToken), but allows to provide files contents in input stream (files are attached to the card as being created or replaced). Input stream Stream, consists of header CardHeader, store request CardStoreRequest and binary contents of files to save.
Method is used in desktop client apps. Use .NET client API to write the stream.
[HttpPostAttribute("store-stream")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[DisableRequestSizeLimitAttribute]
[ConsumesAttribute("application/octet-stream", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<CardStoreResponse>> PostStoreStream(
[FromBodyAttribute] Stream cardStream,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("store-stream")>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<DisableRequestSizeLimitAttribute>
<ConsumesAttribute("application/octet-stream", New String() { ... })>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function PostStoreStream (
<FromBodyAttribute> cardStream As Stream,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of CardStoreResponse))
public:
[HttpPostAttribute(L"store-stream")]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[DisableRequestSizeLimitAttribute]
[ConsumesAttribute(L"application/octet-stream", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<CardStoreResponse^>^>^ PostStoreStream(
[FromBodyAttribute] Stream^ cardStream,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("store-stream")>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<DisableRequestSizeLimitAttribute>]
[<ConsumesAttribute("application/octet-stream", new string[] { ... })>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member PostStoreStream :
[<FromBodyAttribute>] cardStream : Stream *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<CardStoreResponse>>