Create or replace a contact
PUT/contacts/:id/edit
If a contact with this ID exists, fully replaces it. If not, a NEW contact is created β with a newly auto-generated ID, not the ID from the URL. All fields not included in the request will be reset to defaults.
If the unique identifier values in the payload (e.g. email) identify another contact,
the request is rejected with 422 ("email: This field must be unique.").
Requestβ
Responsesβ
- 200
- 201
Contact updated
Contact created (did not exist)