XataX
Xata12mo ago
4 replies
Cawfehhh

PATCH record not working but GET is?

I didn't change anything and suddenly the PATCH record stopped working, even though I followed the convention
https://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/data/record_id


The error message I got was:

Error code

400

Full message

400 - "{\"id\":\"[REDACTED]\",\"message\":\"invalid record: link ID does not exist\"}\n"
Request

{ "body": { "[REDACTED]" }, "headers": { "authorization": "**hidden**", "content-type": "application/json", "accept": "application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7" }, "method": "PATCH", "uri": "[REDACTED]", "gzip": true, "rejectUnauthorized": true, "followRedirect": true, "resolveWithFullResponse": true, "followAllRedirects": true, "timeout": 300000, "encoding": null, "json": false, "useStream": true }


I tried calling the same URL but using GET and I got the correct record. Why does this happen?
Was this page helpful?