account

Create subaccount

Creates a subaccount for the authenticated main account.

post/1.3/account/sub

Request

  • Base URL: https://api.upcloud.com
  • URL: https://api.upcloud.com/1.3/account/sub
  • Auth: HTTP bearer

Request body

Example request

{
  "sub_account": {
    "first_name": "first",
    "last_name": "last",
    "company": "my company name",
    "address": "my address",
    "postal_code": "00130",
    "city": "Helsinki",
    "state": "",
    "country": "FIN",
    "phone": "+358.31245434",
    "email": "user@example.com",
    "vat_number": "my vat number",
    "timezone": "Europe/Helsinki",
    "username": "myusername",
    "password": "mysecr3tPassword",
    "currency": "EUR",
    "language": "en",
    "roles": {
      "role": [
        "technical",
        "billing",
        "aux_billing"
      ]
    },
    "allow_gui": "no",
    "allow_api": "yes",
    "network_access": {
      "network": []
    },
    "server_access": {
      "server": []
    },
    "storage_access": {
      "storage": []
    },
    "tag_access": {
      "tag": []
    },
    "ip_filters": {
      "ip_filter": []
    },
    "labels": [
      {
        "key": "department",
        "value": "it"
      }
    ]
  }
}

Response

Subaccount created.

Changes

No recorded changes to this operation across all 1 revision of this API.