Skip To Content
ArcGIS Developer

/addRelationship: Add Relationship

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

Example Usage

URL for Add Relationship
Origin Item ID=a40fddbcd3fc4fadbbb50485a50c3ed0
Destination Item ID=b512083cd1b64e2da1d3f66dbb135956
Relationship Types=Map2Service


Adds a relationship of a certain type between two items.

Relationships are not tied to an item. They are directional links from an origin item to a destination item and have a type. The type defines the valid origin and destination item types as well as some rules. See Relationship types for more information.

Users don't have to own the items they relate unless so defined by the rules of the relationship type.

Users can only delete relationships they create.

Relationships are deleted automatically if one of the two items is deleted.

Request Parameters

[Common Parameters]

For a complete listing, see Common parameters.


The item ID of the origin item of the relationship.


The item ID of the destination item of the relationship.


The type of relationship between the two items. Must be defined in Relationship types.

Response Properties


Indicates if the operation was successful.

JSON Response Syntax

"success" : true | false

JSON Response Example

"success" : true