AccountController.UpdateAccount Method |
Updates a user account.
Namespace:
Dundas.BI.WebApi.Controllers
Assembly:
Dundas.BI.WebApi (in Dundas.BI.WebApi.dll) Version: 2.0.0.0 (25.2.0.1000)
Syntax[HttpPutAttribute("{id}")]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(405)]
[ProducesResponseTypeAttribute(409)]
[ProducesResponseTypeAttribute(410)]
[ProducesResponseTypeAttribute(440)]
public ActionResult<AccountData> UpdateAccount(
Guid id,
[FromBodyAttribute] AccountData accountData,
Guid? sessionId = null
)
<HttpPutAttribute("{id}")>
<ProducesResponseTypeAttribute(403)>
<ProducesResponseTypeAttribute(405)>
<ProducesResponseTypeAttribute(409)>
<ProducesResponseTypeAttribute(410)>
<ProducesResponseTypeAttribute(440)>
Public Function UpdateAccount (
id As Guid,
<FromBodyAttribute> accountData As AccountData,
Optional sessionId As Guid? = Nothing
) As ActionResult(Of AccountData)
public:
[HttpPutAttribute(L"{id}")]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(405)]
[ProducesResponseTypeAttribute(409)]
[ProducesResponseTypeAttribute(410)]
[ProducesResponseTypeAttribute(440)]
ActionResult<AccountData^>^ UpdateAccount(
Guid id,
[FromBodyAttribute] AccountData^ accountData,
Nullable<Guid> sessionId = nullptr
)
[<HttpPutAttribute("{id}")>]
[<ProducesResponseTypeAttribute(403)>]
[<ProducesResponseTypeAttribute(405)>]
[<ProducesResponseTypeAttribute(409)>]
[<ProducesResponseTypeAttribute(410)>]
[<ProducesResponseTypeAttribute(440)>]
member UpdateAccount :
id : Guid *
[<FromBodyAttribute>] accountData : AccountData *
?sessionId : Nullable<Guid>
(* Defaults:
let _sessionId = defaultArg sessionId null
*)
-> ActionResult<AccountData>
Parameters
- id
- Type: System.Guid
The ID of the account to update. - accountData
- Type: Dundas.BI.WebApi.Models.AccountData
The data that needs to be modified. - sessionId (Optional)
- Type: System.Nullable<Guid>
Current session ID.
Return Value
Type:
ActionResult<AccountData>
The operation completed successfully. The payload contains an
AccountData object representing the current state of the account.
See Also