POST api/Contact/Edit

Amends a contact

Request Information

URI Parameters

None.

Body Parameters

ContactRequest
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

Request Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<ContactRequest 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>
</ContactRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Amends a contact

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>