Zum Inhalt

api/update

Einführung

API-Endpoint zum Ändern eines 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
24
POST: api/update

REQUEST:
{
 entity: "Product",
 id: 1,
 data: {
     name: "Ein neueer Name",
     // 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