---
title: "init(accountType:updateURL:)"
framework: videosubscriberaccount
role: symbol
role_heading: Initializer
path: "videosubscriberaccount/vsuseraccount-swift.struct/init(accounttype:updateurl:)"
---

# init(accountType:updateURL:)

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

## Declaration

```swift
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.

## See Also

### Creating user accounts

- [VSUserAccount.AccountType](videosubscriberaccount/vsuseraccount-swift.struct/accounttype-swift.enum.md)
