POST /api/v1/sub-accounts
    • 16 Apr 2024
    • PDF

    POST /api/v1/sub-accounts

    • PDF

    Article Summary

    Post Sub-Accounts

    Creates a new Sub-Account.

    URL (POST)

    /api/v1/sub-accounts

    Parameters

    None

    Example

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

    Request Body

    {
               "controlAccountId": ####,
               "name": "sample-sub-account",
               "WasabiAccountEmail": "Wasabi-wacm-api@gmail.com",
               "password": "********",
               "sendPasswordResetToSubAccountEmail": true,
               "passwordResetRequired": false,
               "ftpEnabled": true,
               "purchasedStorageTB": null,
               "isTrial": true,
               "trialQuotaTB": 1024, (unit GB)
               "trialDays": 30,
               "channelAccountId": null (optional, not mandatory)
    },

    Response

    {
               "id": ####,
               "name": "sample-sub-account",
               "wasabiAccountNumber": ####,
               "wasabiAccountEmail": "wasabi-wacm-api@gmail.com",
               "creationDate": "2024-01-18T07:15:49.000Z",
               "status": "ON_TRIAL", (can have values: PAID_ACCOUNT, ON_TRIAL, or SUSPENDED)
               "sendPasswordResetToSubAccount": true,
               "ftpEnabled": true,t
               "trialQuotaTB": 1024, (unit GB)
               "trialExpiration": "0001-01-01T00:00:00.000Z"
               "purchasedStorage": null,
               "accessKey": "A5PZSAJ3CEG55D9MF39A",
               "secretKey": "ueD6VQAmroVJvytqpfUqIGkFho0jSeecSK7Pe7DV",
               "channelAccountId": null,
               "channelAccountName": null,
               "controlAccountId": 3732,
               "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".