List the entries merged into an entity in the caller's projects
GET
/api/v1/graph/entities/{id}/merged-from
const url = 'https://api.yggy.tech/api/v1/graph/entities/example/merged-from';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.yggy.tech/api/v1/graph/entities/example/merged-from \ --header 'Authorization: Bearer <token>'Active merges into the entity, newest first, at most 20, each with the project to split it back off in. An entity with no merges, or none the caller can see, has an empty list.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
Graph node id
string
Graph node id
Responses
Section titled “ Responses ”Merged entries
Media type application/json
object
entries
required
Active merges into the entity, newest first, at most 20.
Array<object>
object
sourceId
required
The merged entry; pass it as sourceId to split it back off.
string
label
required
string
type
required
string
mergedAt
required
When it was merged (ISO 8601).
string
reason
required
Why it was merged, when that was recorded.
string | null
automatic
required
Merged automatically rather than by a person.
boolean
relations
required
Relations the merge moved over.
integer
facts
required
Facts the merge moved over.
integer
projectId
required
The project the merge happened in; the projectId of the split route.
string
Example generated
{ "entries": [ { "sourceId": "example", "label": "example", "type": "example", "mergedAt": "example", "reason": "example", "automatic": true, "relations": 1, "facts": 1, "projectId": "example" } ]}Project not found
Media type application/json
object
success
required
boolean
error
required
object
message
required
string
code
required
string
details
Example
{ "success": false, "error": { "code": "INTERNAL_ERROR" }}