A notes graph relation and where it came from
GET
/api/v1/saga/graph/edges/{id}
const url = 'https://api.yggy.tech/api/v1/saga/graph/edges/example';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/saga/graph/edges/example \ --header 'Authorization: Bearer <token>'One statement with both things, its passage, how sure the reading was and the notes it came from.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
Graph edge id
string
Graph edge id
Responses
Section titled “ Responses ”Relation details
Media type application/json
object
id
required
string
predicate
required
string
subject
required
object
id
required
string
label
required
string
group
required
string
object
required
object
id
required
string
label
required
string
group
required
string
status
required
string
evidence
The passage the statement was taken from; left out while any document behind it is in the trash.
string
confidence
number
method
Read from running text, from a table or form, entered by hand, or both.
string
readAt
string
createdAt
string
validFrom
Only when the text states it; a bare year stays a four-digit year.
string
values
object
amount
string
currency
string
unit
string
location
string
sources
required
The notes and files it came from, newest first, from at most 50 documents read.
Array<object>
object
id
required
The note to open; for a file, the note it is attached to.
string
title
required
string
createdAt
string
isFile
required
boolean
sourcesMore
required
More documents back it than were read, so sources is not complete.
boolean
Example
{ "subject": { "group": "people" }, "object": { "group": "people" }, "status": "current", "method": "UNSTRUCTURED"}Not a yggy notes workspace
Media type application/json
object
success
required
boolean
error
required
object
code
required
string
message
required
string
details
Example
{ "success": false}No such relation in this workspace
Media type application/json
object
success
required
boolean
error
required
object
code
required
string
message
required
string
details
Example
{ "success": false}Too many graph requests
Media type application/json
object
success
required
boolean
error
required
object
code
required
string
message
required
string
details
Example
{ "success": false}