- URL:
- https://[root]/content/users/[userName]/deleteRelationship
- Methods:
POST
Example usage
The following is a sample ArcGIS Online POST request for the delete
operation:
URL for Delete Relationship
POST /sharing/rest/content/users/jsmith/deleteRelationships HTTP/1.1
Host: org.arcigs.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
originItemId=a40fddbcd3fc4fadbbb50485a50c3ed0&destinationItemId=b512083cd1b64e2da1d3f66dbb135956&relationshipTypes=Map2Service&f=pjson
The following is a sample ArcGIS Enterprise POST request for the delete
operation:
POST /webadaptor/sharing/rest/content/users/jsmith/deleteRelationships HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
originItemId=a40fddbcd3fc4fadbbb50485a50c3ed0&destinationItemId=b512083cd1b64e2da1d3f66dbb135956&relationshipTypes=Map2Service&f=pjson
Description
The delete
operation deletes a relationship of a certain type between two items. To delete the relationship, the current user must have created the relationship. If the relationship does not exist, an error is thrown.
Request parameters
Parameter | Details |
---|---|
| For a complete listing, see Common parameters. |
| The item ID of the origin item of the relationship. Example:
|
| The item ID of the destination item of the relationship. Example:
|
| The type of relationship between the two items. Example:
|
| The response format. The default format is Values: |
JSON Response syntax
{
"success": true | false
}
JSON Response example
{
"success": true
}