contacts

Add a new contact

Changed on

Add a new contact

post/contacts

Request

  • Base URL
    https://virtserver.swaggerhub.com/LBHC/lbh-co_l_directory_of_services_gateway_api/1.0.1
  • Auth
    none declared

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"
}

Changes

    • info

      added the optional property created to the response with the status

    • info

      added the optional property updated to the response with the status

    • info

      added the new optional request property position

    5 more changes in this revision