Import views, 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 views.
[HttpPostAttribute("import")]
[DisableRequestSizeLimitAttribute]
[SessionMethodAttribute(UserAccessLevel.Administrator)]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(204)]
public Task<ActionResult> PostImport(
[FromBodyAttribute] PlainImportTessaViewRequest 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 PlainImportTessaViewRequest,
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] PlainImportTessaViewRequest^ 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 : PlainImportTessaViewRequest *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult>