How to create a relationship between a feature layer and table using the ArcGIS Online REST API

436
1
04-10-2022 03:01 AM
spatialcase
New Contributor II

Is it possible to use the REST API to create a Feature Service that includes a Feature Layer, a Table and a Relationship between them?

Or is it really only possible to create a relationship within ArcGIS Pro and then publishing the service?

Has anyone seen any examples of using REST API calls that achieve this?

Many Thanks.

1 Reply
mikAMD
by
Occasional Contributor II

Here is a great example on how to create a relationships between two layers/tables within a feature service: https://community.esri.com/t5/arcgis-online-questions/adding-related-table-to-arcgis-online-feature/...