Relationship search

Search for a relationship between two entities.
https://api.rightsline.com/v3/relationship/search
This endpoint allows you to search for a specific relationship between entities.
Request
Response
Request
Headers
x-api-key
required
string
Your company's API key.
Authentication
required
string
Authentication token.
Body Parameters
query
optional
string
The search query.
sortOrders
optional
array
The order to sort the result set.
Response
200: OK
A result set of relationships that match the search query.
{
"numFound": 1,
"entities": [
{
"id": 401961455,
"parentURL": "https://api.rightsline.com/v3/relationship/1000",
"childURL": "https://api.rightsline.com/v3/catalog-item/1",
"relationshipType": {
"relationshipTypeId": 0,
"relationshipTypeName": "Default"
},
"createdById": 1,
"createdDate": "2020-06-03T02:09:48.970Z",
"lastUpdatedById": 1,
"lastUpdatedDate": "2020-06-03T02:09:48.970Z",
"parentCharTypeId": 0,
"parentRecordId": 1000,
"childCharTypeId": 1,
"childRecordId": 1,
"sequenceNumber": 1482159542272
}
]
}

Example Request

Request all relationships between deal ID #4 and child rightsets, sorted by most recently created date.

{
"query": {
"$and":[
{"$eq":["parentrecordid", 4]},
{"$eq":["parentchartypeid", 4]},
{"$eq":["childchartypeid", 3]}
]
},
"sortOrders": [
"created desc"
]
}
‚Äč