WorkplacesControllerPostImport - метод
Импортирует заданные рабочие места.
Метод доступен только администраторам.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 3.6.0.22
[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
)
<HttpPostAttribute("import")>
<DisableRequestSizeLimitAttribute>
<SessionMethodAttribute(UserAccessLevel.Administrator)>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(204)>
Public Function PostImport (
<FromBodyAttribute> request As PlainImportWorkplaceModelRequest,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult)
public:
[HttpPostAttribute(L"import")]
[DisableRequestSizeLimitAttribute]
[SessionMethodAttribute(UserAccessLevel::Administrator)]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(204)]
Task<ActionResult^>^ PostImport(
[FromBodyAttribute] PlainImportWorkplaceModelRequest^ request,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("import")>]
[<DisableRequestSizeLimitAttribute>]
[<SessionMethodAttribute(UserAccessLevel.Administrator)>]
[<TypedJsonBodyAttribute>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(204)>]
member PostImport :
[<FromBodyAttribute>] request : PlainImportWorkplaceModelRequest *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult>
- request PlainImportWorkplaceModelRequest
- Запрос на импорт рабочих мест.
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
TaskActionResultАсинхронная задача.