Django Rest Framework HyperLinkedRelatedField: allow id instead of url for POSTS requests
It is possible but not out of the box.
You should use a ModelSerializer
and define your own relational field.
Start with a PrimaryKeyRelatedField
and override the to_representation
so it returns an url instead of an id.