Property Deck

Property Deck

  • Authentication
  • Getting Started

›API

Getting Started

  • Introduction
  • Authentication
  • Rate Limiting
  • Concepts

API

  • Attachments
  • Competencies
  • Custom Fields
  • Contacts
  • Properties
  • Notes
  • Reminders
  • Statuses
  • Types

Contacts

// TODO need a description for contacts

Object Definition

FieldTypeDescription
uuidstringUnique identifier for the object
created_atstringISO 8601 datetime when the contact was originally created
updated_atstringISO 8601 datetime when the contact was last updated
namestringName of the contact
emailstringEmail of the contact
contact_numberstring / nullContact number of the contact
companystring / nullName of the company the contact is associated with
addressstring / nullLine 1 of the contact's address
address2string / nullLine 2 of the contact's address
citystring / null
countystring / null
postcodestring / null
num_attachmentsintegerNumber of attachments associated with the contact
num_notesintegerNumber of notes associated with the contact

Embeddable Entities

You may embed the following entities with a contact, for more information see our embed docs

  • Competencies
  • Status
  • Type
  • Custom Fields

List all Contacts

Retrieve a paginated list of all the accounts Contacts. GET /contacts.

Filters

You may filter the results from the list endpoint using the following query parameters

FieldTypeDescription
uuidstringExact match for the contact's uuid
created_atDatetimeExact datetime or date range
updated_atDatetimeExact datetime or date range
namestringFuzzy search for the contact's name
emailstringFuzzy search for the contact's email
contact_numberstringFuzzy search for the contact's contact number
companystringFuzzy search for the contact's company
addressstringFuzzy search for the contact's address line 1
address2stringFuzzy search for the contact's address line 2
citystringFuzzy search for the contact's city
countystringFuzzy search for the contact's county
postcodestringFuzzy search for the contact's postcode
statusRelational FilterFilter using status attributes
typeRelational FilterFilter using type attributes
competenciesRelational FilterFilter using competency attributes
propertyRelational FilterFilter using property attributes
custom_fieldsRelational FilterFilter using custom field attributes

Example Response

{
  "data": [
    {
      "uuid": "6a088808-5a18-4efe-affa-83e851980c4f",
      "created_at": "2018-08-02T10:00:45+01:00",
      "updated_at": "2018-08-02T10:00:54+01:00",
      "name": "Jane Doe",
      "email": "jane.doe@example.com",
      "contact_number": "+440000000000",
      "company": "Radweb Ltd",
      "address": "1400 Blueprint",
      "address2": "Dundas Spur",
      "city": "Portsmouth",
      "county": "Hampshire",
      "postcode": "PO3 5RW",
      "num_attachments": 1,
      "num_notes": 1
    }
  ],
  "meta": {
    "pagination": {
      "total": 1,
      "count": 1,
      "per_page": 10,
      "current_page": 1,
      "total_pages": 1
    }
  }
}

Get a single Contact

Retrieve a single contact by it's uuid. GET /contacts/:uuid.

Example Response

{
  "data": {
    "uuid": "6a088808-5a18-4efe-affa-83e851980c4f",
    "created_at": "2018-08-02T10:00:45+01:00",
    "updated_at": "2018-08-02T10:00:54+01:00",
    "name": "Jane Doe",
    "email": "jane.doe@example.com",
    "contact_number": "+440000000000",
    "company": "Radweb Ltd",
    "address": "1400 Blueprint",
    "address2": "Dundas Spur",
    "city": "Portsmouth",
    "county": "Hampshire",
    "postcode": "PO3 5RW",
    "num_attachments": 1,
    "num_notes": 1
  }
}

Creating a Contact

Perform a POST request to the /contacts endpoint. This endpoint will return a HTTP 201 status code on success.

Input

FieldTypeDescription
namestringName of the contact Required
emailstringEmail of the contact Required
contact_numberstring / nullContact number of the contact
companystring / nullName of the company the contact is associated with
addressstring / nullLine 1 of the contact's address
address2string / nullLine 2 of the contact's address
citystring / null
countystring / null
postcodestring / null

Updating a Contact

Perform a PUT request to the /contacts/:uuid endpoint. This endpoint will return a HTTP 200 status code on success.

Input

FieldTypeDescription
namestringName of the contact
emailstringEmail of the contact
contact_numberstring / nullContact number of the contact
companystring / nullName of the company the contact is associated with
addressstring / nullLine 1 of the contact's address
address2string / nullLine 2 of the contact's address
citystring / null
countystring / null
postcodestring / null

Deleting a Contact

Perform a DELETE request to the /contacts/:uuid endpoint. This endpoint will return a HTTP 204 status code on success.

← Custom FieldsProperties →
  • Object Definition
  • Embeddable Entities
  • List all Contacts
    • Filters
    • Example Response
  • Get a single Contact
    • Example Response
  • Creating a Contact
  • Updating a Contact
  • Deleting a Contact
Property Deck
Docs
IntroductionAuthenticationRate LimitingConcepts
API
AttachmentsCompetenciesCustom FieldsContactsProperties
 
NotesRemindersStatusesTypes
Copyright © 2018 Radweb Ltd