1👍
The KeyError is triggered because it is most likely that it is not arriving in your Request and you are trying to access data that does not exist, it is also more recommended to do it this way Example:
data.get("name",None)
you can validate if the data is traveling in your request with the
print(request.data)
👤Lana
Source:stackexchange.com