According to the following RFC:
"...the response SHOULD be 201 (Created) and contain an entity which describes the status of the request and refers to the new resource"
The RFC also specifies that the Location response-header field should include the URI of the new resource created.
I think that this way the API will avoid that two documents/objects would have the same id and it guarantees the idempotence of get, put... services.