API

DomainTag

A domain's tags: list, add, replace, change or remove them.

Operations

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

Method Route SDK operation Returns
POST /domain/domains/{domain}/tags create Created
GET /domain/domains/{domain}/tags list OK
PATCH /domain/domains/{domain}/tags patch Created
DELETE /domain/domains/{domain}/tags remove OK
PUT /domain/domains/{domain}/tags update Created

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:

domain_tags, err := client.DomainTag(nil).List(map[string]any{"domain": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(domain_tags)
created, err := client.DomainTag(nil).Create(map[string]any{"domain": "example", "tag": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.DomainTag(nil).Update(map[string]any{"domain": "example", "tags": []any{}}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
patched, err := client.DomainTag(nil).Patch(map[string]any{"domain": "example", "add": []any{}}, nil)
if err != nil {
    panic(err)
}
fmt.Println(patched)
removed, err := client.DomainTag(nil).Remove(map[string]any{"domain": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

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

local domain_tags, err = client:DomainTag():list({ domain = "example" })
local created, err = client:DomainTag():create({ domain = "example", tag = "example" })
local updated, err = client:DomainTag():update({ domain = "example", tags = {} })
local patched, err = client:DomainTag():patch({ domain = "example", add = {} })
local removed, err = client:DomainTag():remove({ domain = "example" })

PHP

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

$domain_tags = $client->DomainTag()->list(["domain" => "example"]);
$created = $client->DomainTag()->create(["domain" => "example", "tag" => "example"]);
$updated = $client->DomainTag()->update(["domain" => "example", "tags" => []]);
$patched = $client->DomainTag()->patch(["domain" => "example", "add" => []]);
$client->DomainTag()->remove(["domain" => "example"]);

Python

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

domain_tags = client.DomainTag().list({"domain": "example"})
created = client.DomainTag().create({ "domain": "example", "tag": "example" })
updated = client.DomainTag().update({"domain": "example", "tags": []})
patched = client.DomainTag().patch({"domain": "example", "add": []})
client.DomainTag().remove({"domain": "example"})

Ruby

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

domain_tags = client.DomainTag.list({ "domain" => "example" })
created = client.DomainTag.create({ "domain" => "example", "tag" => "example" })
updated = client.DomainTag.update({ "domain" => "example", "tags" => [] })
patched = client.DomainTag.patch({ "domain" => "example", "add" => [] })
client.DomainTag.remove({ "domain" => "example" })

TypeScript

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

const domain_tags = await client.DomainTag().list({ domain: "example" })
const created = await client.DomainTag().create({ domain: "example", tag: "example" })
const updated = await client.DomainTag().update({ domain: "example", tags: [] })
const patched = await client.DomainTag().patch({ domain: "example", add: [] })
await client.DomainTag().remove({ domain: "example" })

Fields

Field Type Required Description
add array Yes Add
message string Yes Message
remove array Yes Remove
tag string Yes Tag
tags array Yes Tags

create

POST /domain/domains/{domain}/tags

Operation ID: postDomainDomainsDomainTags.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Request body

application/json

Property Type Required Description
tag string Yes

Responses

201: Created

application/json

Property Type Required Description
message string 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

list

GET /domain/domains/{domain}/tags

Operation ID: getDomainDomainsDomainTags.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Responses

200: OK

application/json

The response is array of string.

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

patch

PATCH /domain/domains/{domain}/tags

Operation ID: patchDomainDomainsDomainTags.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Request body

application/json

Property Type Required Description
add array of string Yes
remove array of string Yes

Responses

201: Created

application/json

Property Type Required Description
message string 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

remove

DELETE /domain/domains/{domain}/tags

Operation ID: deleteDomainDomainsDomainTags.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Responses

200: OK

application/json

Property Type Required Description
message string 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

update

PUT /domain/domains/{domain}/tags

Operation ID: putDomainDomainsDomainTags.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Request body

application/json

Property Type Required Description
tags array of string Yes

Responses

201: Created

application/json

Property Type Required Description
message string 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