Skip to content

Commit 20a27c1

Browse files
greniksjvans
andauthored
1 parent 78d76c4 commit 20a27c1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,36 +78,36 @@ cds watch
7878

7979
Send an update request that changes personal data:
8080
```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')
8282
Authorization: Basic alice:in-wonderland
8383
Content-Type: application/json
8484
8585
{
86-
"firstName": "Johnny",
87-
"lastName": "Doey"
86+
"firstName": "Danny",
87+
"lastName": "Joules"
8888
}
8989
```
9090

9191
See the audit logs in the server's console output:
9292
```sh
93-
{
93+
[audit-log] - PersonalDataModified: {
9494
data_subject: {
95-
type: 'AdminService.Customers',
96-
id: { ID: '8e2f2640-6866-4dcf-8f4d-3027aa831cad' },
95+
id: { ID: '1004155' },
9796
role: 'Customer',
97+
type: 'AdminService.Customers'
9898
},
9999
object: {
100100
type: 'AdminService.Customers',
101-
id: { ID: '8e2f2640-6866-4dcf-8f4d-3027aa831cad' }
101+
id: { ID: '1004155' }
102102
},
103103
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' }
106106
],
107-
user: 'alice',
107+
uuid: '71fa93d9-c993-405f-ba1b-a9ef42668199',
108108
tenant: 't1',
109-
uuid: '1391A703E2CBE52E817269EC7527368C',
110-
time: '2023-02-26T08:13:48.287Z'
109+
user: 'alice',
110+
time: 2023-02-26T08:13:48.287Z
111111
}
112112
```
113113

0 commit comments

Comments
 (0)