Data/v2/CreateRelationship
This endpoint has been deprecated. There is no newer version.
This endpoint is available from 22nd May 2018.
Creates a relationship between two organisation records.
URL: /data/v2/createRelationship
Method: POST
Method Parameters
Name |
Type |
Required |
Description |
|
|
|
|
|
|
|
See Model Object Properties. |
Model Object Properties
Name |
Type |
Required |
Description |
|
|
|
|
|
|
|
|
relationship |
object |
Yes |
|
Relationship Object Properties
Name |
Type |
Required |
Description |
|
|
|
|
|
|
|
|
Response
The following responses may be returned in addition to the standard ones specified under Common Information.
Code |
Error Message |
Description |
|
|
The request was carried out successfully for all Keys provided with the exception of the Keys returned in the error message. For any keys returned, either:
|
Relationships could not be created. No Relationship hierarchies for the MapLayer were found. |
The Layer of the record being created had no links to any other Layers. If you receive this error, see Creating a new Layer Relationship for further help. |
|
Note: You may receive more than one of the above response messages indicating partial success. | ||
400 |
|
|
|
|
Example call
URL: https://api.vision-mapping.com/data/v2/createRelationship?apiKey=INSERT_YOUR_KEY_HERE
Body:
{
uniqueKey: "abc",
layerKey: "abc",
relationship: {
uniqueKey: "abc",
layerKey: "abc"
}
}