@@ -78,36 +78,36 @@ cds watch
78
78
79
79
Send an update request that changes personal data:
80
80
``` http
81
- PATCH http://localhost:4004/admin/Customers(8e2f2640-6866-4dcf-8f4d-3027aa831cad) HTTP/1.1
81
+ PATCH http://localhost:4004/odata/v4/ admin/Customers('1004155')
82
82
Authorization: Basic alice:in-wonderland
83
83
Content-Type: application/json
84
84
85
85
{
86
- "firstName": "Johnny ",
87
- "lastName": "Doey "
86
+ "firstName": "Danny ",
87
+ "lastName": "Joules "
88
88
}
89
89
```
90
90
91
91
See the audit logs in the server's console output:
92
92
``` sh
93
- {
93
+ [audit-log] - PersonalDataModified: {
94
94
data_subject: {
95
- type: ' AdminService.Customers' ,
96
- id: { ID: ' 8e2f2640-6866-4dcf-8f4d-3027aa831cad' },
95
+ id: { ID: ' 1004155' },
97
96
role: ' Customer' ,
97
+ type: ' AdminService.Customers'
98
98
},
99
99
object: {
100
100
type: ' AdminService.Customers' ,
101
- id: { ID: ' 8e2f2640-6866-4dcf-8f4d-3027aa831cad ' }
101
+ id: { ID: ' 1004155 ' }
102
102
},
103
103
attributes: [
104
- { name: ' firstName' , old: ' John ' , new: ' Johnny ' },
105
- { name: ' lastName' , old: ' Doe ' , new: ' Doey ' }
104
+ { name: ' firstName' , old: ' Daniel ' , new: ' Danny ' },
105
+ { name: ' lastName' , old: ' Watts ' , new: ' Joules ' }
106
106
],
107
- user : ' alice ' ,
107
+ uuid : ' 71fa93d9-c993-405f-ba1b-a9ef42668199 ' ,
108
108
tenant: ' t1' ,
109
- uuid : ' 1391A703E2CBE52E817269EC7527368C ' ,
110
- time: ' 2023-02-26T08:13:48.287Z'
109
+ user : ' alice ' ,
110
+ time: 2023-02-26T08:13:48.287Z
111
111
}
112
112
` ` `
113
113
0 commit comments