Put
/v1/sub-accounts/{id}
The “Update Sub-Account by ID” method is used to update a specific Sub-Account. The purpose of “Update Sub-Account by ID” is to allow the Distributor/Governance and Control Account users to update their Sub-Account's contact information, business information, trial information, convert the account to a paid account, suspend/enable it, etc.
Limitations include: Only users with specific permissions can use this endpoint!
Security
HTTP
Type basic
Path parameters
id
integerRequired
Query parameters
includeKeys
boolean
Defaultfalse
Body parameters
string
Example{
"name": "sample-sub-account",
"wasabiAccountEmail": "wasabi-wacm-api-updated@gmail.com",
"password": "********",
"active": true,
"sendPasswordResetToSubAccountEmail": true,
"ftpEnabled": true,
"resetKeys": true,
"trialToPaid": true,
"trialQuotaTB": 1,
"trialDays": 30,
"address1": null,
"address2": null,
"country": null,
"city": null,
"state": null,
"zip": null,
"mainPhone": "null",
"billingPhone": "null",
"contactEmail": "null",
"billingEmail": "null",
"businessNumber": "null",
"taxId": "null",
"fiscalNumber": null,
"vatNumber": null,
"website": null,
"channelAccountId": null,
"purchasedStorageTB": 1,
"storageQuotaType": "Hard quota"
}
Responses
200
OK
string
Example{
"name": "sample-sub-account",
"wasabiAccountNumber": 67890,
"wasabiAccountEmail": "wasabi-wacm-api-updated@gmail.com",
"creationDate": "2024-01-18T07:15:49Z",
"status": "ON_TRIAL",
"imageUrl": null,
"sendPasswordResetToSubAccount": true,
"ftpEnabled": true,
"trialQuotaTB": 1,
"trialExpiration": "0001-01-01",
"accessKey": "A5PZSAJ3CEG55D9MF39A",
"secretKey": "ueD6VQAmroVJvytqpfUqIGkFho0jSeecSK7Pe7DV",
"address1": null,
"address2": null,
"country": null,
"city": null,
"state": null,
"zip": null,
"mainPhone": "null",
"billingPhone": "null",
"contactEmail": "null",
"billingEmail": "null",
"businessNumber": "null",
"taxId": "null",
"fiscalNumber": null,
"vatNumber": null,
"website": null,
"channelAccountId": null,
"channelAccountName": null,
"controlAccountId": 3732,
"controlAccountName": "Wasabi Demo",
"governanceAccountId": null,
"governanceAccountName": null,
"purchasedStorageTB": 1,
"storageQuotaType": "Hard quota"
}