PUT /api/v1/sub-accounts/:id
    • 16 Apr 2024
    • PDF

    PUT /api/v1/sub-accounts/:id

    • PDF

    Article Summary

    Put Sub-Accounts Id

    Updates a Sub-Account with a specified Id.

    URL (PUT)

    /api/v1/sub-accounts/:id

    Parameters

    None

    Example

    https://api.wacm.wasabisys.com/api/v1/sub-accounts/:id

    Request Body

    {
               "name": "sample-sub-account",
               "wasabiAccountEmail":"wasabi-wacm-api-updated@gmail.com",
               "password": "********",
               "active": true/false,
               "purchasedStorageTB": ####################, (max 20-digits)
               "sendPasswordResetToSubAccountEmail": true,
               "ftpEnabled": true,
               "resetKeys": true, (optional)
               "trialToPaid": true, (optional)
               "trialQuotaTB": 1024, (unit GB)
               "trialDays": ##,
               "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": ####, (optional)
    }

    Response

    {
               "id": ####,
               "name": "sample-sub-account",
               "wasabiAccountNumber": ####,
               "wasabiAccountEmail":"wasabi-wacm-api-updated@gmail.com",
               "creationDate": "2024-01-18T07:15:49.000Z",
               "status": "ON_TRIAL", (can have values: PAID_ACCOUNT, ON_TRIAL, or SUSPENDED)
               "imageUrl": null,
               "sendPasswordResetToSubAccount": true,
               "ftpEnabled": true,
               "trialQuotaTB": 1024,
               "trialExpiration": "0001-01-01T00:00:00.000Z"
               "purchasedStorageTB": null,
               "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": ####,
               "controlAccountName": "Wasabi Demo",
               "governanceAccountId": null,
               "governanceAccountName": null
    }
    • Wasabi Admin/Staff/Support should see the above response.  
    • Governance users will not see "governanceAccountId" and "governanceAccountName". 
    • Control Account users will not see "governanceAccountId", "governanceAccountName", "controlAccountId", and "controlAccountName".