<!--
{
  "availability" : [
    "iOS: 16.4.0 -",
    "iPadOS: 16.4.0 -",
    "macOS: 13.3.0 -",
    "tvOS: 16.4.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoSubscriberAccount",
  "identifier" : "/documentation/VideoSubscriberAccount/VSUserAccount-swift.struct/init(accountType:updateURL:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Video Subscriber Account"
    ],
    "preciseIdentifier" : "s:22VideoSubscriberAccount06VSUserC0V11accountType9updateURLA2C0cF0O_10Foundation0H0VSgtcfc"
  },
  "title" : "init(accountType:updateURL:)"
}
-->

# init(accountType:updateURL:)

Creates a user account object with a URL for account update requests.

```
init(accountType: VSUserAccount.AccountType = .free, updateURL: URL?)
```

## Parameters

`accountType`

A constant that represents whether a user has access to paid content.

`updateURL`

A URL that points to the application’s JavaScript endpoint for update requests.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)