Entities

Create a new relationship between two entities

post/entities/relations

Request body

rel1object
rel2object

Example request

{
  "rel1": {
    "type": "belongsTo",
    "field": "id_users",
    "reference": {
      "entity": "users",
      "field": "id_users"
    }
  },
  "rel2": {
    "type": "hasMany",
    "reference": {
      "entity": "todos",
      "field": "id_users"
    }
  }
}

Response

Success

Changes

No recorded changes to this endpoint across all 6 revisions of this API.