• import { addItemRelationship } from "@esri/arcgis-rest-portal";
    //
    addItemRelationship({
    originItemId: '3ef',
    destinationItemId: 'ae7',
    relationshipType: 'Service2Layer',
    authentication
    })
    .then(response)

    Add a relationship between two items. See the REST Documentation for more information.

    Parameters

    Returns Promise<{
        success: boolean;
    }>

    A Promise to add item resources.