PUT api/Contact/{handle}/Account?user={user}
Update the account of a contact specified by handle. The account is created if it does not exist
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
handle |
Contact handle |
string |
Required |
user |
Optional user handle - if empty logged in user will be used |
string |
None. |
Body Parameters
Account details
UpdateUserAccountName | Description | Type | Additional information |
---|---|---|---|
Account |
Amount of users account |
decimal number |
Required |
AuthorizedBank |
Authorized credit |
decimal number |
Required |
VerifyAutoRenew |
Verify funds when doing auto renewals |
boolean |
None. |
Request Formats
application/json, text/json
{ "Account": 1.0, "AuthorizedBank": 1.0, "VerifyAutoRenew": true }
application/xml, text/xml
<UpdateUserAccount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Contact"> <Account>1</Account> <AuthorizedBank>1</AuthorizedBank> <VerifyAutoRenew>true</VerifyAutoRenew> </UpdateUserAccount>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
User account object on success
Collection of errors on failure
Return codes
200 - ok
400 - bad request
401 - unauthorized
404 - not found
500 - internal server error
Name | Description | Type | Additional information |
---|---|---|---|
Account |
Amount of users account |
decimal number |
Required |
AuthorizedBank |
Authorized credit |
decimal number |
Required |
LastUpdate |
Last update date |
date |
None. |
VerifyAutoRenew |
Verify funds when doing auto renewals |
boolean |
None. |
Response Formats
application/json, text/json
{ "Account": 1.0, "AuthorizedBank": 1.0, "LastUpdate": "2025-04-04T00:16:21.3150575+02:00", "VerifyAutoRenew": true }
application/xml, text/xml
<UserAccount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Contact"> <Account>1</Account> <AuthorizedBank>1</AuthorizedBank> <LastUpdate>2025-04-04T00:16:21.3150575+02:00</LastUpdate> <VerifyAutoRenew>true</VerifyAutoRenew> </UserAccount>