Zum Inhalt

api/insert

Einführung

API-Endpoint zum Hinzufügen eines neues Objektes einer Entität.

Beispiel

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
POST: api/insert

REQUEST:
{
 entity: "Product",
 data: {
     name: "Ein neues Produkt",
     // Join 1:n
     category: {
        id: 1
     }
     // Datum im Format yyyy-mm-dd hh:ii:ss
     active_from: "2016-02-18 15:30:00",
     // Multijoin n:m
     cross_selling: [
        {
            id: 2
        },
        {
            id: 6
        }
     ]
 }

Referenz