- 06 Jun 2024
- 2 Minutes to read
- Print
- PDF
POST an Updated Sub-Account
- Updated on 06 Jun 2024
- 2 Minutes to read
- Print
- PDF
Update the sub-account information.
URL (POST)
POST /v1/accounts/<AcctNum>
If AcctName is specified, this will change the root user’s email address. If AcctName is already in use, the method will fail.
If Password is specified, this will change the root user’s password provided that it passes the password complexity policies.
If NumTrialDays is specified, this will change the number of days associated with the trial period, up to a limit set on the Control Account.
If QuotaGB is specified, this will change the trial period storage quota, up to a limit set on the Control Account. QuotaGB will be ignored when applied to a full (paid) account as there is no support for a quota-limited full account.
If ConvertToPaid is set to “true,” this will transition the sub-account to a full (paid) account.
If ResetAccessKeys is set to “true,” all previous access keys on the sub-account are invalidated and a new Access Key to the root user account on the sub-account is generated.
If PasswordResetRequired is set to “true,” a newly provisioned sub-account password is temporary. The user will be prompted to change the password during the first login.
If EnableFTP is set to “true,” FTP/FTPS access to a sub-account will be enabled. If EnableFTP is set to “false,” FTP/FTPS access will be disabled.
If Inactive is set to “true,” the account will be set as inactive. This will change the corresponding inactive field in the AccountData row. If Inactive is set to “false,” the account will be updated as active.
SendPasswordResetToSubAccountEmail, if set to “true,” will send an email of password reset, password changed, password expiring, or password has expired to the sub-account. Otherwise, the Control Account receives the email.
If AllowAccountDelete is set to “false,” a sub-account is not able to see the Delete Account section in the Wasabi Management Console. If it is “true,” the Delete Account section is visible.
If DisableMFA is set to “true,” MFA will be deactivated in a sub-account.
Sample
Request: POST /v1/accounts/134
Authorization: 3a6e2967305e6475fcb895b1842b59de
Content-Type: application/json
X-Wasabi-Service: partner
Request-JSON:
{
"AcctName": "second-f68241f15bfcf08c1e11877d617a7f93@wasabi.com",
"NumTrialDays": 45,
"Password": "xyzzy123$$$",
"QuotaGB": 512,
"ResetAccessKeys": true,
"EnableFTP": true
}
Response: 200 OK
Content-Length: 181
Content-Type: application/json
Date: Wed, 07 Feb 2018 19:49:49 GMT
Response-JSON:
{
"AcctNum": 134,
"AcctName": "second-f68241f15bfcf08c1e11877d617a7f93@wasabi.com",
"AccessKey": "Z1JI27OQ75B00OLDLYMP",
"SecretKey": "z69QahHLjvrSnuHKJOqVufzazv1VcVJpAITvJWjN",
"CreateTime": "2018-02-07T19:49:49Z",
"IsTrial": true,
"TrialExpiry": "2018-03-20T00:00:00Z",
"QuotaGB": 512,
"FTPEnabled": true,
"Inactive": false
}
Example Converting to Paid Account
Request: POST /v1/accounts/134
Authorization: 3a6e2967305e6475fcb895b1842b59de
Content-Type: application/json
X-Wasabi-Service: partner
Request-JSON:
{
"ConvertToPaid": true
}
Response: 200 OK
Content-Length: 131
Content-Type: application/json
Date: Wed, 07 Feb 2018 19:49:49 GMT
Response-JSON:
{
"AcctNum": 134,
"AcctName": "second-f68241f15bfcf08c1e11877d617a7f93@wasabi.com",
"CreateTime": "2018-02-07T19:49:49Z",
"IsTrial": false,
"Inactive": false
}