API

DomainContact

A domain's contacts: get or update them, or change its owner (owner).

Operations

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

Method Route SDK operation Returns
GET /domain/domains/{domain}/contacts load OK
PATCH /domain/domains/{domain}/contacts update Accepted
PUT /domain/domains/{domain}/contacts/owner update 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:

domain_contact, err := client.DomainContact(nil).Load(map[string]any{"domain": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(domain_contact)
updated, err := client.DomainContact(nil).Update(map[string]any{"domain": "example", "admin": map[string]any{}}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)

Lua

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

local domain_contact, err = client:DomainContact():load({ domain = "example" })
local updated, err = client:DomainContact():update({ domain = "example", admin = {} })

PHP

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

$domain_contact = $client->DomainContact()->load(["domain" => "example"]);
$updated = $client->DomainContact()->update(["domain" => "example", "admin" => []]);

Python

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

domain_contact = client.DomainContact().load({"domain": "example"})
updated = client.DomainContact().update({"domain": "example", "admin": {}})

Ruby

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

domain_contact = client.DomainContact.load({ "domain" => "example" })
updated = client.DomainContact.update({ "domain" => "example", "admin" => {} })

TypeScript

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

const domain_contact = await client.DomainContact().load({ domain: "example" })
const updated = await client.DomainContact().update({ domain: "example", admin: {} })

Fields

Field Type Required Description
admin object Yes Admin
bill object Yes Bill
message string Yes Message
owner object Yes Owner
tech object Yes Tech

load

GET /domain/domains/{domain}/contacts

Operation ID: getDomainDomainsDomainContacts.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Responses

200: OK

application/json

Property Type Required Description
admin object Yes
admin.brand_number string No
admin.city string No
admin.country string Yes
admin.data_obfuscated boolean No
admin.email string Yes
admin.extra_parameters object No
admin.family string Yes
admin.fax string No
admin.given string Yes
admin.jo_announce_number string No
admin.jo_announce_page string No
admin.jo_declaration_date string No
admin.jo_publication_date string No
admin.mail_obfuscated boolean No
admin.mobile string No
admin.orgname string No
admin.phone string No
admin.reachability enum: pending, done, failed, deleted, none No
admin.same_as_owner boolean Yes
admin.sharing_id string No
admin.siren string No
admin.state string No
admin.streetaddr string Yes
admin.type enum: individual, company, association, publicbody Yes
admin.validation enum: pending, done, failed, deleted, none No
admin.zip string No
bill object Yes
bill.brand_number string No
bill.city string No
bill.country string Yes
bill.data_obfuscated boolean No
bill.email string Yes
bill.extra_parameters object No
bill.family string Yes
bill.fax string No
bill.given string Yes
bill.jo_announce_number string No
bill.jo_announce_page string No
bill.jo_declaration_date string No
bill.jo_publication_date string No
bill.mail_obfuscated boolean No
bill.mobile string No
bill.orgname string No
bill.phone string No
bill.reachability enum: pending, done, failed, deleted, none No
bill.same_as_owner boolean Yes
bill.sharing_id string No
bill.siren string No
bill.state string No
bill.streetaddr string Yes
bill.type enum: individual, company, association, publicbody Yes
bill.validation enum: pending, done, failed, deleted, none No
bill.zip string No
owner object Yes
owner.brand_number string No
owner.city string No
owner.country string Yes
owner.data_obfuscated boolean No
owner.email string Yes
owner.extra_parameters object No
owner.family string Yes
owner.fax string No
owner.given string Yes
owner.jo_announce_number string No
owner.jo_announce_page string No
owner.jo_declaration_date string No
owner.jo_publication_date string No
owner.mail_obfuscated boolean No
owner.mobile string No
owner.orgname string No
owner.phone string No
owner.reachability enum: pending, done, failed, deleted, none No
owner.sharing_id string No
owner.siren string No
owner.state string No
owner.streetaddr string Yes
owner.type enum: individual, company, association, publicbody Yes
owner.validation enum: pending, done, failed, deleted, none No
owner.zip string No
tech object Yes
tech.brand_number string No
tech.city string No
tech.country string Yes
tech.data_obfuscated boolean No
tech.email string Yes
tech.extra_parameters object No
tech.family string Yes
tech.fax string No
tech.given string Yes
tech.jo_announce_number string No
tech.jo_announce_page string No
tech.jo_declaration_date string No
tech.jo_publication_date string No
tech.mail_obfuscated boolean No
tech.mobile string No
tech.orgname string No
tech.phone string No
tech.reachability enum: pending, done, failed, deleted, none No
tech.same_as_owner boolean Yes
tech.sharing_id string No
tech.siren string No
tech.state string No
tech.streetaddr string Yes
tech.type enum: individual, company, association, publicbody Yes
tech.validation enum: pending, done, failed, deleted, none No
tech.zip 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

update

PATCH /domain/domains/{domain}/contacts

Operation ID: patchDomainDomainsDomainContacts.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Request body

application/json

Property Type Required Description
admin object No
admin.brand_number string No
admin.city string No
admin.country string Yes
admin.data_obfuscated boolean No
admin.email string Yes
admin.extra_parameters object No
admin.family string Yes
admin.fax string No
admin.given string Yes
admin.icann_contract_accept boolean No
admin.jo_announce_number string No
admin.jo_announce_page string No
admin.jo_declaration_date string No
admin.jo_publication_date string No
admin.lang enum: en, es, fr, ja, zh-hans, zh-hant No
admin.mail_obfuscated boolean No
admin.mobile string No
admin.orgname string No
admin.phone string No
admin.siren string No
admin.state string No
admin.streetaddr string Yes
admin.type enum: individual, company, association, publicbody Yes
admin.validation enum: pending, done, failed, deleted, none No
admin.zip string No
bill object No
bill.brand_number string No
bill.city string No
bill.country string Yes
bill.data_obfuscated boolean No
bill.email string Yes
bill.extra_parameters object No
bill.family string Yes
bill.fax string No
bill.given string Yes
bill.icann_contract_accept boolean No
bill.jo_announce_number string No
bill.jo_announce_page string No
bill.jo_declaration_date string No
bill.jo_publication_date string No
bill.lang enum: en, es, fr, ja, zh-hans, zh-hant No
bill.mail_obfuscated boolean No
bill.mobile string No
bill.orgname string No
bill.phone string No
bill.siren string No
bill.state string No
bill.streetaddr string Yes
bill.type enum: individual, company, association, publicbody Yes
bill.validation enum: pending, done, failed, deleted, none No
bill.zip string No
tech object No
tech.brand_number string No
tech.city string No
tech.country string Yes
tech.data_obfuscated boolean No
tech.email string Yes
tech.extra_parameters object No
tech.family string Yes
tech.fax string No
tech.given string Yes
tech.icann_contract_accept boolean No
tech.jo_announce_number string No
tech.jo_announce_page string No
tech.jo_declaration_date string No
tech.jo_publication_date string No
tech.lang enum: en, es, fr, ja, zh-hans, zh-hant No
tech.mail_obfuscated boolean No
tech.mobile string No
tech.orgname string No
tech.phone string No
tech.siren string No
tech.state string No
tech.streetaddr string Yes
tech.type enum: individual, company, association, publicbody Yes
tech.validation enum: pending, done, failed, deleted, none No
tech.zip string No

Responses

202: Accepted

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

PUT /domain/domains/{domain}/contacts/owner

Operation ID: putDomainDomainsDomainContactsOwner.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes
Dry-Run header integer No

Request body

application/json

Property Type Required Description
brand_number string No
city string No
country string Yes
data_obfuscated boolean No
email string Yes
extra_parameters object No
family string No
fax string No
given string No
icann_contract_accept boolean No
jo_announce_number string No
jo_announce_page string No
jo_declaration_date string No
jo_publication_date string No
lang enum: en, es, fr, ja, zh-hans, zh-hant No
mail_obfuscated boolean No
mobile string No
phone string No
siren string No
state string No
streetaddr string Yes
validation enum: pending, done, failed, deleted, none No
zip string No

Responses

200: OK

application/json

Property Type Required Description
errors array of object No
errors[].description string Yes
errors[].location enum: header, path, querystring, body Yes
errors[].name string Yes
status enum: success, error Yes
202: Accepted

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