v1

latestOpenAPI 3.1.12026-07-17111158225.7 KB
templates

List template records

Lists the records for a template.

get/{account}/templates/{template}/records

Path parameters

accountinteger required

The account id

templatestring required

The template id or short name

Query parameters

sort'id:asc' | 'id:desc' | 'name:asc' | 'name:desc' | 'content:asc' | 'content:desc' | 'type:asc' | 'type:desc'

Sort results. Default sorting is by id ascending.

Response

Successfully retrieved the template records list.

Example response

{
  "data": [
    {
      "id": 296,
      "template_id": 268,
      "name": "",
      "content": "192.168.1.1",
      "ttl": 3600,
      "priority": null,
      "type": "A",
      "created_at": "2016-04-26T08:23:54Z",
      "updated_at": "2016-04-26T08:23:54Z"
    }
  ],
  "pagination": {
    "current_page": 1,
    "per_page": 30,
    "total_entries": 2,
    "total_pages": 1
  }
}