logo

Back to Help Home Page.

POST Api/Reports/{reportId}/Contacts

Inserts a new contact.

Request Information

URI Parameters

NameDescriptionTypeAdditional information

reportId

The id of report where the contact will be linked to.

integer

Required

Body Parameters

The contact.

ChappReport.Site.Areas.Api.Models.V1.ReportContactV1ModelRequest
NameDescriptionTypeAdditional information

Firstname

The first name of the contact.

string

Max length: 50

Lastname

The lastname of the contact.

string

Max length: 50

Email

The email of the contact.

string

Max length: 100

Telephone

The primary telephone of the contact.

string

Max length: 50

Language

The communication language of the contact. List of ISO 2 DIGIT Language Codes (ISO 639-1)

string

String length: inclusive between 2 and 2

Address

The address of the contact.

ChappReport.Site.Areas.Api.Models.V1.AddressV1Model

None.

Type

The way the contact is linked to the report. Possible values are: Tenant, Landlord

string

Required

ContactCategoryType

Business or Person

string

Required

CompanyName

The name of the company, required if ContactType is of type Business

string

None.

BusinessNumber

The business number if the contactType is of type Business

string

None.

IsMandated

Whether the executor is by default mandated to sign the documents

boolean

None.

NationalRegistrationNumber

National registration number / Rijksregisterennummer

string

None.

DateOfBirth

date

None.

PlaceOfBirth

string

String length: inclusive between 2 and 50

Request Formats

application/json, text/json

Sample:
{
  "Firstname": "Tenny",
  "Lastname": "Tenant",
  "Email": "TennyTenant@email.com",
  "Telephone": "+31 477 12 45 89",
  "Language": "NL",
  "Address": {
    "Street": "Leidse Plein",
    "HouseNumber": 286,
    "ZipCode": "1000 AA",
    "City": "Amsterdam",
    "Country": "NL"
  },
  "Type": "Tenant",
  "ContactCategoryType": "Person",
  "IsMandated": false
}

application/xml, text/xml

Sample:
<ReportContactV1ModelRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChappReport.Site.Areas.Api.Models.V1">
  <Address>
    <City>Amsterdam</City>
    <Country>NL</Country>
    <HouseNumber>286</HouseNumber>
    <HouseNumberExtension i:nil="true" />
    <Mailbox i:nil="true" />
    <State i:nil="true" />
    <Street>Leidse Plein</Street>
    <ZipCode>1000 AA</ZipCode>
  </Address>
  <BusinessNumber i:nil="true" />
  <CompanyName i:nil="true" />
  <ContactCategoryType>Person</ContactCategoryType>
  <DateOfBirth i:nil="true" />
  <Email>TennyTenant@email.com</Email>
  <Firstname>Tenny</Firstname>
  <IsMandated>false</IsMandated>
  <Language>NL</Language>
  <Lastname>Tenant</Lastname>
  <NationalRegistrationNumber i:nil="true" />
  <PlaceOfBirth i:nil="true" />
  <Telephone>+31 477 12 45 89</Telephone>
  <Type>Tenant</Type>
</ReportContactV1ModelRequest>

Response Information

Resource Description

The id of the created contact. In the location header is a uri where the contact can be retrieved.

ChappReport.Site.Areas.Api.Models.V1.CreatedResponse
NameDescriptionTypeAdditional information

Id

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1
}

application/xml, text/xml

Sample:
<CreatedResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChappReport.Site.Areas.Api.Models.V1">
  <Id>1</Id>
</CreatedResponse>