Dear Experts,
I call an entity in order to edit some data, so I do a PUT request.
Entity key doesn't exist, so result expected is "Error: record doesn't exist" but the behavior is diffent.
EDIT request is converted in CREATE request and new record is insterted.
In CAP's change log documentation, I find this comment:

Is it possible to disable this behavior?
Maybe by configuration?
Best
Alice
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hi Alice,
Yes, you can by adding the following to your cds config.
Best,
Sebastian
runtime: {
allow_upsert: false
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sebastian,
this configuration works.
I have change file .cdsrc.json adding this property:
"runtime": {
"allow_upsert": false
},
Best
Alice
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.