Skip To Content
ArcGIS Developer
Dashboard

/deleteRelationship: Delete Relationship

  • URL:https://[root]/content/users/[userName]/deleteRelationship(POST only)

Example Usage

URL for Delete Relationship

https://www.arcgis.com/sharing/rest/content/users/jsmith/deleteRelationship
Origin Item ID=a40fddbcd3fc4fadbbb50485a50c3ed0
Destination Item ID=b512083cd1b64e2da1d3f66dbb135956
Relationship Types=Map2Service

Description

Deletes a relationship of a certain type between two items. The current user must have created the relationship to delete it. If the relationship does not exist, an error is thrown.

Request Parameters

ParameterDetails
[Common Parameters]

For a complete listing, see Common parameters.

originItemId

The item ID of the origin item of the relationship.

destinationItemId

The item ID of the destination item of the relationship.

relationshipTypes

The type of relationship between the two items.

Response Properties

PropertyDetails
success

Indicates if the operation was successful.

JSON Response Syntax


            {
"success" : true | false
}

JSON Response Example


            {
"success" : true
}