Need API add and update examples

Good day.
I’m using https://ralph-ng.readthedocs.io/en/stable/user/api/ ( Save sample resource), but it not work:

curl -d ‘{ “hostname”: “aws-proxy-2.my-dc”, “status”: “damaged”, “service_env”: 12, “licences”: [1, 2, 3] }’ -H “Authorization: Token 9xxx8” -H “Content-Type: application/json” -X PUT https://xxxxxxxx/api/data-center-assets/816/

Returns:

{“rack”:[“This field is required.”],“service_env”:[“Invalid pk “12” - object does not exist.”],“model”:[“This field is required.”]}

It’s clear about service_env 12, but what should I set for rack and mount when update?

How look adding new hw?

with the best regards,
Mikalai Beliashou

SOLVED: Rack and model from current state
curl -d ‘{“rack”: 24, “model”: 21, “remarks”: “комментарий”, “hostname”: “DChXXXXX”, “sn”: “2128506”}’ -H “Authorization: Token 9xxxxx8” -H “Content-Type: application/json” -X PUT https://xxxxxxx/api/data-center-assets/816/