Relations
Add relations
This query allows the addition of a relation between two already stored persons. The body must be in json format and follow the following structure :
[
{
"from": "",
"to": "",
"relation": "",
"date": "",
"detail": ""
},
{
"from": "",
"to": "",
"relation": "",
"date": "",
"detail": ""
}
]The server responds by listing the ids of the relationships created
Add relations
POST https://app.netw4ppl.tech/api/links
Headers
Name
Type
Description
Application-id*
String
Authorization*
String
Request Body
Name
Type
Description
[
"727bf5e9-1c87-42b2-ba44-4b020520eb9f"
]{
"message": "The 0.from must be a valid UUID.",
"errors": {
"0.from": [
"The 0.from must be a valid UUID."
]
}
}Update relations
To update the relationships between two people, you have to use the same query as to create a relationship while adding the id attribute of the relationship to modify in the body :
[
{
"id": "",
"from": "",
"to": "",
"relation": "",
"date": "",
"detail": ""
},
{
"id": "",
"from": "",
"to": "",
"relation": "",
"date": "",
"detail": ""
}
]The server responds by listing the ids of the relationships created
Last updated