v23

latestOpenAPI 3.0.0raw.githubusercontent.com2018-12-12442338.0 KB
contacts

Add a new contact

Add a new contact

post/contacts

Request body

urlstring required

Url of the contact

emailstring

Email address of the contact

namestring required

Name of the contact

positionstring

Position of the contact

social_facebookstring

Link to facebook profile

social_twitterstring

Link to twitter profile

phonenumberstring

Phone number of the contact

Example request

{
  "url": "https://www.hackney.gov.uk/",
  "email": "bob@hackney.gov.uk",
  "name": "Bob Smith",
  "position": "CEO",
  "social_facebook": "https://facebook.com",
  "social_twitter": "https://twitter.com",
  "phonenumber": "020 8356 3000"
}

Response

Succesfully added a new contact

idstring

UUID of contact

urlstring

Url of the contact

emailstring

Email address of the contact

namestring

Name of the contact

positionstring

Position of the contact

social_facebookstring

Link to facebook profile

social_twitterstring

Link to twitter profile

phonenumberstring

Phone number of the contact

createdstring date-time

The date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

updatedstring date-time

The date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

flaggedboolean

Should this content be reivewed?

Example response

{
  "id": "24ad0d03-cb05-4539-845d-d30fecf774cd",
  "url": "https://www.hackney.gov.uk/",
  "email": "bob@hackney.gov.uk",
  "name": "Bob Smith",
  "position": "CEO",
  "social_facebook": "https://facebook.com",
  "social_twitter": "https://twitter.com",
  "phonenumber": "020 8356 3000",
  "created": "2017-07-21T17:32:28Z",
  "updated": "2017-07-21T18:38:30Z"
}