The following are the available relationship types for creating a relationship between items:
Relationship type | Description | Origin type | Destination type | Rule |
---|---|---|---|---|
Map2Service | Web Map |
| None | |
WMA2Code | Web Mapping Application | Code Attachment |
| |
Map2FeatureCollection | Web Map | Feature Collection | None | |
MobileApp2Code | Mobile Application | Code Attachment |
| |
Service2Data | Models the association of a derived service and its source data. The derived service is the origin of the relationship. The source data is the destination of the relationship. The source data can be a service. The relationship can be queried in either direction. | Service Item:
| Source Data:
| mustOwnAllItems |
Service2Service | Models the association of a source service and a derived service. The source service is the origin of the relationship. The derived service is the destination of the relationship. The relationship can be queried in either direction. | Feature Service | Map Service | mustOwnAllItems |
Map2AppConfig | Web Map | Application Configuration |
| |
Item2Attachment | * |
|
| |
Item2Report | * |
| ||
Listed2Provisioned | * | * |
| |
Style2Style | Vector Tile Service | Vector Tile Service, Style | mustOwnDestinationItem | |
Service2Style |
| Vector Tile Service, Style | mustOwnDestinationItem | |
Survey2Service | Models the relationship between a Survey123 form item to the feature service where data from the form is submitted. | Form | Feature Service | mustOwnOriginItem |
Survey2Data | Models the relationship between a Survey123 form item to other items used by the survey. Includes feature services views that are read-only for use in the Survey123 website, map packages that can be downloaded and used offline, and Word templates that can be used by the Survey123 reporting functionality. | Form | Feature Service View, Web Map, Map Package, Tile Package, Vector Tile Package, Microsoft Word | mustOwnOriginItem |
Service2Route | Models the relationship between a feature service containing all the routes and the route layer representing each route. | Hosted Feature Service | Route Layer |
|
Area2Package | Map Area |
|
| |
Map2Area | Web Map | Map Area | mustOwnAllItems | |
Service2Layer | Feature Service | Feature Service |
| |
Area2CustomPackage | Map Area |
| mustOwnAllItems | |
TrackView2Map | Models the association of a Track View to a Web Map during creation of the Track View in the Tracker web app. | Feature Service | Web Map | |
SurveyAddIn2Data | Survey123 Add In | * | mustOwnOriginItem | |
WorkforceMap2FeatureService | Models the association of a Workforce Feature Service to a Web Map during the creation of a Workforce Project. | Web Map |
| mustOwnAllItemsNota:This relationship type is applicable to both ArcGIS Online and ArcGIS Enterprise. Support for this relationship type was added to ArcGIS Enterprise at 10.8.1. |
Theme2Story | Models the association between an ArcGIS StoryMaps Theme and the ArcGIS StoryMaps that use that theme. A theme can be used by many stories, but a story uses only one theme. The relationship can be queried in either direction. | ArcGIS StoryMaps Theme | ArcGIS StoryMaps | None Nota:This relationship type is applicable to both ArcGIS Online and ArcGIS Enterprise. Support for this relationship type was added to ArcGIS Enterprise at 10.9. |
WebStyle2DesktopStyle | Models the association of Web Style to Desktop Style that is used to publish the Web Style. | Style | DesktopStyle | mustOwnAllItemsNota:This relationship type is applicable to both ArcGIS Online and ArcGIS Enterprise. Support for this relationship type was added to ArcGIS Enterprise at 10.9. |
Solution2Item | Models the association of Solution to the items created as part of the Solution. | Solution | * | None Nota:This relationship type is applicable to both ArcGIS Online and ArcGIS Enterprise. Support for this relationship type was added to ArcGIS Enterprise at 10.9. |
APIKey2Item | Models the association of API keys to an item on the ArcGIS for Developers item pages. | API Key | * | mustOwnAllItemsNota:This relationship type is only applicable to ArcGIS Online organizations. |
Mission2Item | Models the association of Mission to the items created as part of a Mission. | Mission | * | None Nota:Introduced at 10.9.1. This relationship type is only applicable to ArcGIS Enterprise organizations. |
Notebook2WebTool | Models the association between a notebook and the web tool published from that notebook. | Notebook | Geoprocessing service |
Nota:ArcGIS Notebook Server automatically manages this relationship type, so users do not need to add or delete this relationship manually. Introduced at 10.9.1. This relationship type is only applicable to ArcGIS Enterprise organizations. |
Relationship rules
Each relationship type can have rules that are enforced by the server to help keep the items properly related.
- compositeShare—Related items are logically treated as one shareable item.
- Prerequisites
- Both items must be owned by the owner of the relationship.
- Both items must be shared the same way.
- Rules
- If the origin item is shared, the destination item is shared the same way.
- Sharing of the destination item is not allowed.
- Prerequisites
- compositeDelete—Related items are logically treated as one item upon deletion.
- Prerequisites
- Both items must be owned by the owner of the relationship.
- Rules
- If the origin item is deleted, the destination item is deleted.
- If the destination item is deleted, the origin item is not affected.
- Prerequisites
- copyOriginShareOnAdd—The destination item inherits all the sharing permissions of the origin item and is an overwrite of the destination item permissions. This rule applies to addItem with the relationship call.
- mustOwnOriginItem—The creator of the relationship must own the origin item.
- mustOwnDestinationItem—The creator of the relationship must own the destination item.
- mustOwnAllItems—The creator of the relationship must own both related items.
- childListing—Both the source (parent) and the destination (child) items must be listed: the parent publicly and the child privately.