POST api/CreateContact

Request Information

URI Parameters

None.

Body Parameters

Contact
NameDescriptionTypeAdditional information
ContactId

integer

None.

CompanyId

integer

None.

FirstName

string

None.

Surname

string

None.

Title

string

None.

Salutation

string

None.

Department

string

None.

Telephone

string

None.

Extension

string

None.

Fax

string

None.

Email

string

None.

Mobile

string

None.

Website

string

None.

Address1

string

None.

Address2

string

None.

Address3

string

None.

City

string

None.

County

string

None.

Postcode

string

None.

Country

string

None.

Notes

string

None.

Client

boolean

None.

Supplier

boolean

None.

Company

Company

None.

Status

integer

None.

CreatedBy

integer

None.

ModifiedBy

integer

None.

DateCreated

date

None.

DateModified

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ContactId": 1,
  "CompanyId": 1,
  "FirstName": "sample string 2",
  "Surname": "sample string 3",
  "Title": "sample string 4",
  "Salutation": "sample string 5",
  "Department": "sample string 6",
  "Telephone": "sample string 7",
  "Extension": "sample string 8",
  "Fax": "sample string 9",
  "Email": "sample string 10",
  "Mobile": "sample string 11",
  "Website": "sample string 12",
  "Address1": "sample string 13",
  "Address2": "sample string 14",
  "Address3": "sample string 15",
  "City": "sample string 16",
  "County": "sample string 17",
  "Postcode": "sample string 18",
  "Country": "sample string 19",
  "Notes": "sample string 20",
  "Client": true,
  "Supplier": true,
  "Company": {
    "CompanyId": 1,
    "Name": "sample string 2",
    "AccountNo": "sample string 3",
    "VatNumber": "sample string 4",
    "CompanyRegNo": "sample string 5",
    "Notes": "sample string 6",
    "Client": true,
    "Supplier": true,
    "Address1": "sample string 9",
    "Address2": "sample string 10",
    "Address3": "sample string 11",
    "City": "sample string 12",
    "County": "sample string 13",
    "Postcode": "sample string 14",
    "Country": "sample string 15",
    "SalespersonId": 1,
    "IndustryId": 1,
    "Contacts": [],
    "BillablesSupplied": [
      {
        "BillableId": 1,
        "UnitTypeId": 2,
        "BillableTypeId": 3,
        "CategoryId": 4,
        "SupplierId": 1,
        "ClientId": 1,
        "Name": "sample string 5",
        "SizeX": 6,
        "SizeY": 7,
        "SizeZ": 8,
        "Cost": 9.0,
        "UnitSizeX": 10,
        "UnitSizeY": 11,
        "UnitSizeZ": 12,
        "UnitCost": 13.0,
        "Markup": 14,
        "SupplierCode": "sample string 15",
        "PartCode": "sample string 16",
        "BillableType": {
          "BillableTypeId": 1,
          "Name": "sample string 2",
          "Status": 3,
          "CreatedBy": 4,
          "ModifiedBy": 5,
          "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
          "DateModified": "2026-04-07T15:43:17.7023384+01:00"
        },
        "Category": {
          "CategoryId": 1,
          "Name": "sample string 2",
          "Status": 3,
          "CreatedBy": 4,
          "ModifiedBy": 5,
          "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
          "DateModified": "2026-04-07T15:43:17.7023384+01:00"
        },
        "UnitType": {
          "UnitTypeId": 1,
          "Name": "sample string 2",
          "Label": "sample string 3",
          "DefaultUnitSize": 4,
          "SizeX": true,
          "SizeY": true,
          "SizeZ": true,
          "Xlabel": "sample string 8",
          "Ylabel": "sample string 9",
          "Zlabel": "sample string 10",
          "Status": 11,
          "CreatedBy": 12,
          "ModifiedBy": 13,
          "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
          "DateModified": "2026-04-07T15:43:17.7023384+01:00"
        },
        "Status": 17,
        "CreatedBy": 18,
        "ModifiedBy": 19,
        "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
        "DateModified": "2026-04-07T15:43:17.7023384+01:00"
      },
      {
        "BillableId": 1,
        "UnitTypeId": 2,
        "BillableTypeId": 3,
        "CategoryId": 4,
        "SupplierId": 1,
        "ClientId": 1,
        "Name": "sample string 5",
        "SizeX": 6,
        "SizeY": 7,
        "SizeZ": 8,
        "Cost": 9.0,
        "UnitSizeX": 10,
        "UnitSizeY": 11,
        "UnitSizeZ": 12,
        "UnitCost": 13.0,
        "Markup": 14,
        "SupplierCode": "sample string 15",
        "PartCode": "sample string 16",
        "BillableType": {
          "BillableTypeId": 1,
          "Name": "sample string 2",
          "Status": 3,
          "CreatedBy": 4,
          "ModifiedBy": 5,
          "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
          "DateModified": "2026-04-07T15:43:17.7023384+01:00"
        },
        "Category": {
          "CategoryId": 1,
          "Name": "sample string 2",
          "Status": 3,
          "CreatedBy": 4,
          "ModifiedBy": 5,
          "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
          "DateModified": "2026-04-07T15:43:17.7023384+01:00"
        },
        "UnitType": {
          "UnitTypeId": 1,
          "Name": "sample string 2",
          "Label": "sample string 3",
          "DefaultUnitSize": 4,
          "SizeX": true,
          "SizeY": true,
          "SizeZ": true,
          "Xlabel": "sample string 8",
          "Ylabel": "sample string 9",
          "Zlabel": "sample string 10",
          "Status": 11,
          "CreatedBy": 12,
          "ModifiedBy": 13,
          "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
          "DateModified": "2026-04-07T15:43:17.7023384+01:00"
        },
        "Status": 17,
        "CreatedBy": 18,
        "ModifiedBy": 19,
        "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
        "DateModified": "2026-04-07T15:43:17.7023384+01:00"
      }
    ],
    "BillablesFor": [
      {
        "BillableId": 1,
        "UnitTypeId": 2,
        "BillableTypeId": 3,
        "CategoryId": 4,
        "SupplierId": 1,
        "ClientId": 1,
        "Name": "sample string 5",
        "SizeX": 6,
        "SizeY": 7,
        "SizeZ": 8,
        "Cost": 9.0,
        "UnitSizeX": 10,
        "UnitSizeY": 11,
        "UnitSizeZ": 12,
        "UnitCost": 13.0,
        "Markup": 14,
        "SupplierCode": "sample string 15",
        "PartCode": "sample string 16",
        "BillableType": {
          "BillableTypeId": 1,
          "Name": "sample string 2",
          "Status": 3,
          "CreatedBy": 4,
          "ModifiedBy": 5,
          "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
          "DateModified": "2026-04-07T15:43:17.7023384+01:00"
        },
        "Category": {
          "CategoryId": 1,
          "Name": "sample string 2",
          "Status": 3,
          "CreatedBy": 4,
          "ModifiedBy": 5,
          "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
          "DateModified": "2026-04-07T15:43:17.7023384+01:00"
        },
        "UnitType": {
          "UnitTypeId": 1,
          "Name": "sample string 2",
          "Label": "sample string 3",
          "DefaultUnitSize": 4,
          "SizeX": true,
          "SizeY": true,
          "SizeZ": true,
          "Xlabel": "sample string 8",
          "Ylabel": "sample string 9",
          "Zlabel": "sample string 10",
          "Status": 11,
          "CreatedBy": 12,
          "ModifiedBy": 13,
          "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
          "DateModified": "2026-04-07T15:43:17.7023384+01:00"
        },
        "Status": 17,
        "CreatedBy": 18,
        "ModifiedBy": 19,
        "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
        "DateModified": "2026-04-07T15:43:17.7023384+01:00"
      },
      {
        "BillableId": 1,
        "UnitTypeId": 2,
        "BillableTypeId": 3,
        "CategoryId": 4,
        "SupplierId": 1,
        "ClientId": 1,
        "Name": "sample string 5",
        "SizeX": 6,
        "SizeY": 7,
        "SizeZ": 8,
        "Cost": 9.0,
        "UnitSizeX": 10,
        "UnitSizeY": 11,
        "UnitSizeZ": 12,
        "UnitCost": 13.0,
        "Markup": 14,
        "SupplierCode": "sample string 15",
        "PartCode": "sample string 16",
        "BillableType": {
          "BillableTypeId": 1,
          "Name": "sample string 2",
          "Status": 3,
          "CreatedBy": 4,
          "ModifiedBy": 5,
          "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
          "DateModified": "2026-04-07T15:43:17.7023384+01:00"
        },
        "Category": {
          "CategoryId": 1,
          "Name": "sample string 2",
          "Status": 3,
          "CreatedBy": 4,
          "ModifiedBy": 5,
          "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
          "DateModified": "2026-04-07T15:43:17.7023384+01:00"
        },
        "UnitType": {
          "UnitTypeId": 1,
          "Name": "sample string 2",
          "Label": "sample string 3",
          "DefaultUnitSize": 4,
          "SizeX": true,
          "SizeY": true,
          "SizeZ": true,
          "Xlabel": "sample string 8",
          "Ylabel": "sample string 9",
          "Zlabel": "sample string 10",
          "Status": 11,
          "CreatedBy": 12,
          "ModifiedBy": 13,
          "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
          "DateModified": "2026-04-07T15:43:17.7023384+01:00"
        },
        "Status": 17,
        "CreatedBy": 18,
        "ModifiedBy": 19,
        "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
        "DateModified": "2026-04-07T15:43:17.7023384+01:00"
      }
    ],
    "NotesList": [
      {
        "NoteId": 1,
        "CompanyId": 1,
        "Details": "sample string 2",
        "ForAttention": true,
        "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
        "DateAttention": "2026-04-07T15:43:17.7023384+01:00",
        "JobId": 1,
        "UserId": 1,
        "OldInformationId": "sample string 5",
        "Status": 6,
        "CreatedBy": 7,
        "ModifiedBy": 8,
        "DateModified": "2026-04-07T15:43:17.7023384+01:00"
      },
      {
        "NoteId": 1,
        "CompanyId": 1,
        "Details": "sample string 2",
        "ForAttention": true,
        "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
        "DateAttention": "2026-04-07T15:43:17.7023384+01:00",
        "JobId": 1,
        "UserId": 1,
        "OldInformationId": "sample string 5",
        "Status": 6,
        "CreatedBy": 7,
        "ModifiedBy": 8,
        "DateModified": "2026-04-07T15:43:17.7023384+01:00"
      }
    ],
    "Industry": {
      "IndustryID": 1,
      "Description": "sample string 2",
      "Status": 3,
      "CreatedBy": 4,
      "ModifiedBy": 5,
      "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
      "DateModified": "2026-04-07T15:43:17.7023384+01:00"
    },
    "Status": 16,
    "CreatedBy": 17,
    "ModifiedBy": 18,
    "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
    "DateModified": "2026-04-07T15:43:17.7023384+01:00"
  },
  "Status": 23,
  "CreatedBy": 24,
  "ModifiedBy": 25,
  "DateCreated": "2026-04-07T15:43:17.7023384+01:00",
  "DateModified": "2026-04-07T15:43:17.7023384+01:00"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Contact'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.