Create operation with specified attributes and return its identifier. Operation can be created with state InProgress, if flag CreateInProgress is specified in the request.
Return 201 (Created), or 409 (Conflict) if operation with that identifier already exists.
[HttpPostAttribute("new")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(201)]
[ProducesResponseTypeAttribute(409)]
public Task<ActionResult<Guid>> PostCreate(
[FromBodyAttribute] CreateOperationRequest request,
CancellationToken cancellationToken = default
)<HttpPostAttribute("new")>
<SessionMethodAttribute(UserAccessLevel.Regular, false, New String() { ... })>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(201)>
<ProducesResponseTypeAttribute(409)>
Public Function PostCreate (
<FromBodyAttribute> request As CreateOperationRequest,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of Guid))public:
[HttpPostAttribute(L"new")]
[SessionMethodAttribute(UserAccessLevel::Regular, false, __gc new array<String^>^ { ... })]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(201)]
[ProducesResponseTypeAttribute(409)]
Task<ActionResult<Guid>^>^ PostCreate(
[FromBodyAttribute] CreateOperationRequest^ request,
CancellationToken cancellationToken = CancellationToken()
)[<HttpPostAttribute("new")>]
[<SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })>]
[<TypedJsonBodyAttribute>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(201)>]
[<ProducesResponseTypeAttribute(409)>]
member PostCreate :
[<FromBodyAttribute>] request : CreateOperationRequest *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<Guid>>