Data store record changed
A refusal to change or delete one data store record, because it changed after it was read.
| Field | Value |
|---|---|
type |
https://mockhub.dev/problems/store-record-changed |
| Status | 409 |
What it means
Section titled “What it means”Every read of a record carries its version, its etag. An edit or a delete sends that version back in If-Match, and the record is written only while it still holds it. When a mock, a teammate or a script wrote the record in between, nothing is changed, so your edit does not silently replace what they wrote. A delete is refused the same way, and so is an edit of a record that was deleted meanwhile.
Status
Section titled “Status”Always 409.
Where it comes from
Section titled “Where it comes from”From Save in the record dialog of a collection on the Data store tab, and from deleting a record there.
| When | detail |
|---|---|
| Always | This record changed after you loaded it, most likely by a mock. Reload it and apply your change again, or overwrite it. |
In the record dialog the app keeps your text, shows the record as it is now beside it, and offers Overwrite with your text and Reload the record.
This type carries no extension members.
{ "type": "https://mockhub.dev/problems/store-record-changed", "title": "Data store record changed", "status": 409, "detail": "This record changed after you loaded it, most likely by a mock. Reload it and apply your change again, or overwrite it."}What to do
Section titled “What to do”- Compare your text with the record as it is now. To keep what is stored, select Reload the record and make your change again.
- To replace it anyway, select Overwrite with your text, which writes over the version you have just seen.
- From a script, read the record again for its new
etag, or send the write withoutIf-Matchto write whatever the record holds.