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": ""
  }
]

Add relations

POST https://app.netw4ppl.tech/api/links

Headers

Name
Type
Description

Application-id*

String

Authorization*

String

Request Body

Name
Type
Description

json

The json should match Relations

[
    "727bf5e9-1c87-42b2-ba44-4b020520eb9f"
]

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