Frequently asked question
Yes. It is possible to add relationships to a hosted feature service in ArcGIS Online. The REST API Administrative directory can add and delete relationship classes in a hosted feature service in ArcGIS Online if the related table and the feature layer exist within the same service. However, it is not recommended to edit the service through the REST endpoint because this can modify the schema of the hosted feature layer. The suggested workaround is to create a related table in ArcGIS Pro, and overwrite the hosted feature layer in ArcGIS Online.
Get help from ArcGIS experts
Download the Esri Support App