Hi for a external application we would like to update records using the ODATA API. but we’ve noticed that updating foreign keys returns a `403 Forbidden`, but mutating the normal columns update fine.
We’ve tried this using a PATCH/POST request and a STAGED record, both fail in the end. curiously the STAGED record only adds the non-key values to the STAGED record even when u try to pot a key in, it does not accept it.
We currently work around this using a subroutine, but would be alot better if we could just mutate the record directly instead of writing subroutines for every table we need.
Using a patch:
![](https://uploads-eu-west-1.insided.com/thinkwise-en/attachment/a5c8c254-b00b-48b2-bc92-9362125ebe1d.png)
![](https://uploads-eu-west-1.insided.com/thinkwise-en/attachment/b2ac4b89-a0cc-48e9-94a6-ae6bb058a639.png)