templates

List templates

Lists the templates in the account.

get/{account}/templates

Path parameters

accountinteger required

The account id

Query parameters

sort'id:asc' | 'id:desc' | 'name:asc' | 'name:desc' | 'sid:asc' | 'sid:desc'

Sort results. Default sorting is by id ascending.

Response

Successfully retrieved account template list.

Example response

{
  "data": [
    {
      "id": 1,
      "account_id": 1010,
      "name": "Alpha",
      "sid": "alpha",
      "description": "An alpha template.",
      "created_at": "2016-03-22T11:08:58Z",
      "updated_at": "2016-03-22T11:08:58Z"
    }
  ],
  "pagination": {
    "current_page": 1,
    "per_page": 30,
    "total_entries": 2,
    "total_pages": 1
  }
}

Changes

Changed in 2 of the 52 revisions of this API.1313

    • the response property data became required for the status 200

      response-property-became-required

    • the response property data/items/account_id became required for the status 200

      response-property-became-required

    • the response property data/items/created_at became required for the status 200

      response-property-became-required

    • the response property data/items/description became required for the status 200

      response-property-became-required

    • the response property data/items/id became required for the status 200

      response-property-became-required

    • the response property data/items/name became required for the status 200

      response-property-became-required

    • the response property data/items/sid became required for the status 200

      response-property-became-required

    • the response property data/items/updated_at became required for the status 200

      response-property-became-required

    • the response property pagination became required for the status 200

      response-property-became-required

    • the response property pagination/current_page became required for the status 200

      response-property-became-required

    • the response property pagination/per_page became required for the status 200

      response-property-became-required

    • the response property pagination/total_entries became required for the status 200

      response-property-became-required

    • the response property pagination/total_pages became required for the status 200

      response-property-became-required

    • the response property data became optional for the status 200

      response-property-became-optional

    • the response property data/items/account_id became optional for the status 200

      response-property-became-optional

    • the response property data/items/created_at became optional for the status 200

      response-property-became-optional

    • the response property data/items/description became optional for the status 200

      response-property-became-optional

    • the response property data/items/id became optional for the status 200

      response-property-became-optional

    • the response property data/items/name became optional for the status 200

      response-property-became-optional

    • the response property data/items/sid became optional for the status 200

      response-property-became-optional

    • the response property data/items/updated_at became optional for the status 200

      response-property-became-optional

    • the response property pagination became optional for the status 200

      response-property-became-optional

    • the response property pagination/current_page became optional for the status 200

      response-property-became-optional

    • the response property pagination/per_page became optional for the status 200

      response-property-became-optional

    • the response property pagination/total_entries became optional for the status 200

      response-property-became-optional

    • the response property pagination/total_pages became optional for the status 200

      response-property-became-optional

    This revision also has 25 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog