---
title: applinks
framework: bundleresources
role: symbol
role_heading: Object
path: bundleresources/applinks
---

# applinks

The root object for a universal links service definition.

## Declaration

```swift
object applinks
```

## Properties

defaults: details: substitutionVariables:

## Overview

Overview Use this object to define the universal links you want to associate with your domain. The object contains these keys: Add the JSON code to your apple-app-site-association file along with the app identifiers for the apps that you designate to handle universal links for your domain. This example code shows a universal links section in an association file: "applinks": {   "details": [     {       "appIDs": [ "ABCDE12345.com.example.app", "ABCDE12345.com.example.app2" ],       "components": [         {           "#": "no_universal_links",           "exclude": true,           "comment": "Matches any URL whose fragment equals no_universal_links and instructs the system not to open it as a universal link"         },         {           "/": "/buy/*",           "comment": "Matches any URL whose path starts with /buy/"         },         {           "/": "/help/website/*",           "exclude": true,           "comment": "Matches any URL whose path starts with /help/website/ and instructs the system not to open it as a universal link"         },         {           "/": "/help/*",           "?": { "articleNumber": "????" },           "comment": "Matches any URL whose path starts with /help/ and that has a query item with name 'articleNumber' and a value of exactly 4 characters"         }       ]     }   ] }

## Topics

### Universal links definitions

- [applinks.Details](bundleresources/applinks/details-swift.dictionary.md)

### Pattern-matching defaults

- [applinks.Defaults](bundleresources/applinks/defaults-swift.dictionary.md)

### Substitution variables

- [applinks.SubstitutionVariables](bundleresources/applinks/substitutionvariables-swift.dictionary.md)
