MENU
      POST sub-accounts
      • 09 Sep 2024
      • 1 Minute to read

      POST sub-accounts


      Article summary

      Post Sub-Accounts

      Creates a new Sub-Account. 

      URL (POST)

      /api/v1/sub-accounts
      JSON

      Parameters

      None

      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": #, (unit TB, values can be 1 to 5)
                 "trialDays": 30,
                 "channelAccountId": null (optional, not mandatory)
      },
      JSON

      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": #, (unit TB, values can be 1 to 5)
                 "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
      },
      JSON
      • 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".