Skip to the content.

Site Infos API

With Site Infos api V4 you can:

List site infos

Fetch a paginated list of site infos.

See the optional response fields.

Optional params:

examples:

GET /api/v4/site_infos?team_id=26&updated_after=2022-05-24T19:30:30Z&orderby=updated_after+asc&fields=site_uuid,-created_at
200 OK

[
  {
    "id": 3352,
    "uuid": "ad479b2e-cc80-11ed-bed6-367dda11fc13",
    "site_id": 5632,
    "site_uuid": "ad48f258-cc80-11ed-bed6-367dda11fc13",
    "position": 2,
    "site_info_type": "text",
    "title": "General contact information",
    "formatted_text": "Consectetur nihil eum. Est nihil recusandae. Aliquam vero hic.",
    "topics": [
      {
        "type": "pin",
        "text": "896-427-5606"
      },
      {
        "type": "phone",
        "text": "356042909"
      }
    ],
    "updated_at": "2023-03-27 22:20:56 +1300"
  },
  {
    "id": 1010,
    "uuid": "12222672-cc81-11ed-bed6-367dda11fc13",
    "site_id": 1009,
    "site_uuid": "12222f96-cc81-11ed-bed6-367dda11fc13",
    "position": 3,
    "site_info_type": "text",
    "title": "House of Mirth",
    "formatted_text": "Totam dolor expedita. Animi repellat facilis. Repellat nobis rerum.",
    "topics": [
      {
        "type": "person",
        "text": "606.649.0947"
      }
    ],
    "updated_at": "2023-03-27 22:23:44 +1300"
  }
]

Create a site info

Creates one site info.

Input fields for create:
POST /api/v4/site_infos

{
  "site_info":   {
    "uuid": "12222672-cc81-11ed-bed6-367dda11fc13",
    "site_id": 1009,
    "position": 3,
    "site_info_type": "text",
    "title": "House of Mirth",
    "formatted_text": "Totam dolor expedita.\n\n Animi repellat facilis. Repellat nobis rerum.",
    "topics": [
      {
        "type": "pin",
        "text": "896-427-5606"
      },
      {
        "type": "phone",
        "text": "356042909"
      }
    ]
  }
}
201 Created

{
  "id": 14,
  "uuid": "12222672-cc81-11ed-bed6-367dda11fc13",
  "site_id": 1009,
  "position": 3,
  "site_info_type": "text",
  "title": "House of Mirth",
  "formatted_text": "Totam dolor expedita.\n\n Animi repellat facilis. Repellat nobis rerum.",
  "topics": [
    {
      "type": "pin",
      "text": "896-427-5606"
    },
    {
      "type": "phone",
      "text": "356042909"
    }
  ],
  "created_at": "2023-03-08 20:01:53 +1300",
  "updated_at": "2023-03-08 20:01:53 +1300"
}

Fetch a site info

Get a site info entry.

See the optional response fields.

GET /api/v4/site_infos/14?fields=site_uuid
200 OK

{
  "id": 14,
  "uuid": "12222672-cc81-11ed-bed6-367dda11fc13",
  "site_id": 1009,
  "site_uuid": "ad48f258-cc80-11ed-bed6-367dda11fc13",
  "position": 3,
  "site_info_type": "text",
  "title": "House of Mirth",
  "formatted_text": "Totam dolor expedita.\n\n Animi repellat facilis. Repellat nobis rerum.",
  "topics": [
    {
      "type": "pin",
      "text": "896-427-5606"
    },
    {
      "type": "phone",
      "text": "356042909"
    }
  ],
  "created_at": "2023-03-08 20:01:53 +1300",
  "updated_at": "2023-03-08 20:01:53 +1300"
}

Update a Site Info

Updates the allowed fields on one single site info. It only updates the fields sent.

Input fields for update:
PATCH /api/v4/site_infos/123

{
  "site_info":   {
    "position": 3,
    "site_info_type": "text",
    "title": "House of Marcia",
    "formatted_text": "Work finished. Cleaning in progress.",
    "topics": []
  }
}
204 No Content

Delete a Site Info

Delete one single site info.

DELETE /api/v4/site_infos/123
204 No Content

Response fields

You can use the fields query parameter in any of the Site Info API endpoints to configure what fields will be included in the response. All fields in bold are included by default but you can opt-out of them using the - prefix.