API

TemplateDispatch

Applying a template (create), and the dispatch that results.

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /template/templates/{id} create Accepted
GET /template/dispatch/{id} load OK

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

template_dispatch, err := client.TemplateDispatch(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(template_dispatch)
created, err := client.TemplateDispatch(nil).Create(map[string]any{"template_id": "example", "object_id": "example", "object_type": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local template_dispatch, err = client:TemplateDispatch():load({ id = "example_id" })
local created, err = client:TemplateDispatch():create({ template_id = "example", object_id = "example", object_type = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$template_dispatch = $client->TemplateDispatch()->load(["id" => "example_id"]);
$created = $client->TemplateDispatch()->create(["template_id" => "example", "object_id" => "example", "object_type" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

template_dispatch = client.TemplateDispatch().load({"id": "example_id"})
created = client.TemplateDispatch().create({ "template_id": "example", "object_id": "example", "object_type": "example" })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

template_dispatch = client.TemplateDispatch.load({ "id" => "example_id" })
created = client.TemplateDispatch.create({ "template_id" => "example", "object_id" => "example", "object_type" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const template_dispatch = await client.TemplateDispatch().load({ id: "example_id" })
const created = await client.TemplateDispatch().create({ template_id: "example", object_id: "example", object_type: "example" })

Fields

Field Type Required Description
attempt integer Yes Attempt
created_at string Yes Created At
dispatch_href string Yes Dispatch Href
id string Yes Id
message string Yes Message
object_id string Yes Object Id
object_type string Yes Object Type
payload object Yes Payload
sharing_id string Yes Sharing Id
state integer Yes State
state_msg string No State Msg
target object Yes Target
target_id string Yes Target Id
target_type string Yes Target Type
task_history array Yes Task History
task_status object Yes Task Status
task_updated_at string No Task Updated At
template_id string No Template Id
template_name string No Template Name

create

POST /template/templates/{id}

Operation ID: postTemplateTemplatesId.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Request body

application/json

Property Type Required Description
object_id string Yes
object_type enum: domain Yes

Responses

202: Accepted

application/json

Property Type Required Description
dispatch_href string Yes
message string Yes
payload object Yes
payload.dns:records object No
payload.dns:records.default boolean No
payload.dns:records.records array of object No
payload.dns:records.records[].name string Yes
payload.dns:records.records[].ttl integer No
payload.dns:records.records[].type enum: A, AAAA, ALIAS, CAA, CDS, CNAME, ... Yes
payload.dns:records.records[].values array of string Yes
payload.domain:mailboxes object No
payload.domain:mailboxes.values array of object Yes
payload.domain:mailboxes.values[].login string Yes
payload.domain:nameservers object No
payload.domain:nameservers.addresses array of string Yes
payload.domain:nameservers.service enum: custom, livedns Yes
payload.domain:webredirs object No
payload.domain:webredirs.values array of object Yes
payload.domain:webredirs.values[].host string No
payload.domain:webredirs.values[].override boolean No
payload.domain:webredirs.values[].protocol enum: http, https, httpsonly No
payload.domain:webredirs.values[].type enum: cloak, http301, http302 Yes
payload.domain:webredirs.values[].url string Yes
target_id string Yes
target_type enum: domain Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

load

GET /template/dispatch/{id}

Operation ID: getTemplateDispatchId.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Responses

200: OK

application/json

Property Type Required Description
attempt integer Yes
created_at string Yes
id string Yes
payload object Yes
payload.dns:records object No
payload.dns:records.default boolean No
payload.dns:records.records array of object No
payload.dns:records.records[].name string Yes
payload.dns:records.records[].ttl integer No
payload.dns:records.records[].type enum: A, AAAA, ALIAS, CAA, CDS, CNAME, ... Yes
payload.dns:records.records[].values array of string Yes
payload.domain:mailboxes object No
payload.domain:mailboxes.values array of object Yes
payload.domain:mailboxes.values[].login string Yes
payload.domain:nameservers object No
payload.domain:nameservers.addresses array of string Yes
payload.domain:nameservers.service enum: custom, livedns Yes
payload.domain:webredirs object No
payload.domain:webredirs.values array of object Yes
payload.domain:webredirs.values[].host string No
payload.domain:webredirs.values[].override boolean No
payload.domain:webredirs.values[].protocol enum: http, https, httpsonly No
payload.domain:webredirs.values[].type enum: cloak, http301, http302 Yes
payload.domain:webredirs.values[].url string Yes
sharing_id string Yes
state enum: 0, 10, 20, 30 Yes
state_msg string No
target object Yes
target.name string Yes
target.type string Yes
target_id string Yes
task_history array of object Yes
task_history[].date string Yes
task_history[].message string Yes
task_history[].namespace string Yes
task_history[].status enum: 0, 10, 20, 30 Yes
task_status object Yes
task_updated_at string No
template_id string No
template_name string No
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes