GroupsControllerPostGroup - метод
Store information on a group with specified identifier.
Returns
Status403Forbidden if the group is inaccessible or doesn't exist.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.2+a8f0dd3c063817b2e3f05a923303d808e447c338
[HttpPostAttribute("{id:guid}")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<PlainValidationResult>> PostGroup(
[FromRouteAttribute] Guid id,
[FromBodyAttribute] PlainGroupStoreRequest request,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("{id:guid}")>
<SessionMethodAttribute(UserAccessLevel.Regular, false, New String() { ... })>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function PostGroup (
<FromRouteAttribute> id As Guid,
<FromBodyAttribute> request As PlainGroupStoreRequest,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of PlainValidationResult))
public:
[HttpPostAttribute(L"{id:guid}")]
[SessionMethodAttribute(UserAccessLevel::Regular, false, __gc new array<String^>^ { ... })]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<PlainValidationResult^>^>^ PostGroup(
[FromRouteAttribute] Guid id,
[FromBodyAttribute] PlainGroupStoreRequest^ request,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("{id:guid}")>]
[<SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })>]
[<TypedJsonBodyAttribute>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member PostGroup :
[<FromRouteAttribute>] id : Guid *
[<FromBodyAttribute>] request : PlainGroupStoreRequest *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<PlainValidationResult>>
- id Guid
- Group's identifier.
- request PlainGroupStoreRequest
- Request to store the group. Identifier is overriden from a route's value id.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskActionResultPlainValidationResult
Validation result with warnings and informational messages occured during the store.
However, if errors occured, the result is the same validation result, but with HTTP code
Status400BadRequest.