Create operation with specified attributes. 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("{id:guid}")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(201)]
[ProducesResponseTypeAttribute(409)]
public Task<ActionResult> PostCreate(
[FromRouteAttribute] Guid id,
[FromBodyAttribute] CreateOperationRequest request,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("{id:guid}")>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(201)>
<ProducesResponseTypeAttribute(409)>
Public Function PostCreate (
<FromRouteAttribute> id As Guid,
<FromBodyAttribute> request As CreateOperationRequest,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult)
public:
[HttpPostAttribute(L"{id:guid}")]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(201)]
[ProducesResponseTypeAttribute(409)]
Task<ActionResult^>^ PostCreate(
[FromRouteAttribute] Guid id,
[FromBodyAttribute] CreateOperationRequest^ request,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("{id:guid}")>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<TypedJsonBodyAttribute>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(201)>]
[<ProducesResponseTypeAttribute(409)>]
member PostCreate :
[<FromRouteAttribute>] id : Guid *
[<FromBodyAttribute>] request : CreateOperationRequest *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult>