WorkplacesControllerPostImport - метод

Import workplaces, creating, deleting ones and/or modifying existent. Method is available for administrators only.

Flag ImportRoles can be set to false to skip any access modifications to new or existent workplaces.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
C#
[HttpPostAttribute("import")]
[DisableRequestSizeLimitAttribute]
[SessionMethodAttribute(UserAccessLevel.Administrator)]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(204)]
public Task<ActionResult> PostImport(
	[FromBodyAttribute] PlainImportWorkplaceModelRequest request,
	CancellationToken cancellationToken = default
)

Параметры

request  PlainImportWorkplaceModelRequest
Request to import the workplaces.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

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

TaskActionResult
204 (No Content).

См. также