DELETE api/Contact/Delete/{id}

Deletes a contact with the Id passed in

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Id of the contact

integer

Required

Body Parameters

None.

Response Information

Resource Description

The deleted contact record

ContactResponse
NameDescriptionTypeAdditional information
Id

Id of the contact

integer

None.

Name

Name of the contact

string

Required

Email

Email address of the contact

string

Required

UserId

Id of the user this contact belongs to

integer

Required

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "Email": "sample string 3",
  "UserId": 4
}

application/xml, text/xml

Sample:
<ContactResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Expirify.Api.Models.Contact">
  <Email>sample string 3</Email>
  <Id>1</Id>
  <Name>sample string 2</Name>
  <UserId>4</UserId>
</ContactResponse>