OperationsControllerPostCreate - метод

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.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
[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
)

Параметры

request  CreateOperationRequest
Request to create operation.
cancellationToken  CancellationToken  (Optional)
Token to cancel an async task.

Возвращаемое значение

TaskActionResultGuid
Identifier of created operation.

См. также