You need to use a POST, not a PUT, to create a new object.
Browse to /api/docs/ in a web browser and you should see (in green) POST /ipam/prefixes/ in the row which has ipam_prefixes_create on the right-hand side.
PUT /ipam/prefixes/{id}/ is used to update an existing object.