Get sources by target
GET {{baseUrl}}/api/v2/:target_type/:target_id/relationship_fields/:field_id/:source_type
Returns a list of source objects whose values are populated with the id of a related target object. For example,
if you have a lookup field called Success Manager
on a ticket, this endpoint can answer the question,
What tickets (sources) is this user (found by `target_type` and `target_id`)
assigned as the 'Success Manager' (field referenced by `field_id`)?
Allowed For
- Agents
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"users":[{"id":223443,"name":"Johnny Agent"},{"id":8678530,"name":"James A. Rosen"}]}