templates

Create a template record

Creates a new template record.

post/{account}/templates/{template}/records

Path parameters

accountinteger required

The account id

templatestring required

The template id or short name

Request body

namestring required
typestring required
contentstring required
ttlinteger
priorityinteger

Example request

{
  "name": "",
  "type": "MX",
  "content": "mx.example.com",
  "ttl": 600,
  "priority": 10
}

Response

Successfully create a template record.

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

Changes

Changed in 3 of the 52 revisions of this API.16512

    • the / response's property type changed from integer to string null for status

      response-property-type-changed

  • v206780be0ef17312See the full diff
    • added the new required request property

      new-required-request-property

    • added the new required request property

      new-required-request-property

    • added the new required request property

      new-required-request-property

    • added the new optional request property

      new-optional-request-property

    • added the new optional request property

      new-optional-request-property

    • the response property became required for the status

      response-property-became-required

    • the response property / became required for the status

      response-property-became-required

    • the response property / became required for the status

      response-property-became-required

    • the response property / became required for the status

      response-property-became-required

    • the response property / became required for the status

      response-property-became-required

    • the response property / became required for the status

      response-property-became-required

    • the response property / became required for the status

      response-property-became-required

    • the response property / became required for the status

      response-property-became-required

    • the response property / became required for the status

      response-property-became-required

    • the response property / became required for the status

      response-property-became-required

  • v2c8591dcf8c29125See the full diff
    • the response property / became nullable for the status

      response-property-became-nullable

    • the response property became optional for the status

      response-property-became-optional

    • the response property / became optional for the status

      response-property-became-optional

    • the response property / became optional for the status

      response-property-became-optional

    • the response property / became optional for the status

      response-property-became-optional

    • the response property / became optional for the status

      response-property-became-optional

    • the response property / became optional for the status

      response-property-became-optional

    • the response property / became optional for the status

      response-property-became-optional

    • the response property / became optional for the status

      response-property-became-optional

    • the response property / became optional for the status

      response-property-became-optional

    • the response property / became optional for the status

      response-property-became-optional

    • the / response's property type changed from string null to integer for status

      response-property-type-changed

    • removed the request property

      request-property-removed

    • removed the request property

      request-property-removed

    • removed the request property

      request-property-removed

    • removed the request property

      request-property-removed

    • removed the request property

      request-property-removed

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