API

DomainChangeOwner

A change of a domain's owner: start it, follow it, or resend its emails (foa).

Operations

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

Method Route SDK operation Returns
POST /domain/changeowner/{domain} create OK
POST /domain/changeowner/{domain}/foa create Accepted
GET /domain/changeowner/{domain} 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:

domain_change_owner, err := client.DomainChangeOwner(nil).Load(map[string]any{"domain": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(domain_change_owner)
created, err := client.DomainChangeOwner(nil).Create(map[string]any{"domain": "example", "admin": map[string]any{}, "bill": map[string]any{}, "owner": map[string]any{}, "tech": map[string]any{}}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

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

local domain_change_owner, err = client:DomainChangeOwner():load({ domain = "example" })
local created, err = client:DomainChangeOwner():create({ domain = "example", admin = {}, bill = {}, owner = {}, tech = {} })

PHP

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

$domain_change_owner = $client->DomainChangeOwner()->load(["domain" => "example"]);
$created = $client->DomainChangeOwner()->create(["domain" => "example", "admin" => [], "bill" => [], "owner" => [], "tech" => []]);

Python

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

domain_change_owner = client.DomainChangeOwner().load({"domain": "example"})
created = client.DomainChangeOwner().create({ "domain": "example", "admin": {}, "bill": {}, "owner": {}, "tech": {} })

Ruby

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

domain_change_owner = client.DomainChangeOwner.load({ "domain" => "example" })
created = client.DomainChangeOwner.create({ "domain" => "example", "admin" => {}, "bill" => {}, "owner" => {}, "tech" => {} })

TypeScript

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

const domain_change_owner = await client.DomainChangeOwner().load({ domain: "example" })
const created = await client.DomainChangeOwner().create({ domain: "example", admin: {}, bill: {}, owner: {}, tech: {} })

Fields

Field Type Required Description
admin object Yes Admin
bill object Yes Bill
created_at string Yes Created At
date_start string No Date Start
errors array No Errors
errortype string No Errortype
errortype_label string No Errortype Label
foa array No Foa
inner_step string No Inner Step
owner object Yes Owner
params object Yes Params
status string Yes Status
step string Yes Step
step_nb integer Yes Step Nb
tech object Yes Tech
updated_at string Yes Updated At

create

POST /domain/changeowner/{domain}

Operation ID: postDomainChangeownerDomain.

Authentication: bearer token (bearerAuth).

Parameters

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

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, reseller 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, reseller 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.icann_contract_accept boolean No
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.lang enum: en, es, fr, ja, zh-hans, zh-hant No
owner.mail_obfuscated boolean No
owner.mobile string No
owner.orgname string No
owner.phone string No
owner.siren string No
owner.state string No
owner.streetaddr string Yes
owner.type enum: individual, company, association, publicbody, reseller Yes
owner.validation enum: pending, done, failed, deleted, none No
owner.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, reseller Yes
tech.validation enum: pending, done, failed, deleted, none No
tech.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

POST /domain/changeowner/{domain}/foa

Operation ID: postDomainChangeownerDomainFoa.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Request body

application/json

Property Type Required Description
email string Yes

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

load

GET /domain/changeowner/{domain}

Operation ID: getDomainChangeownerDomain.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes
sharing_id query string No

Responses

200: OK

application/json

Property Type Required Description
created_at string (date-time) Yes
date_start string No
errortype string No
errortype_label string No
foa array of object No
foa[].answer string Yes
foa[].email string Yes
inner_step string No
params object Yes
params.answer_new_owner string No
params.answer_old_owner string No
params.inner_step string No
params.new_owner_email string No
params.old_admin_email string No
params.old_owner_email string No
step string Yes
step_nb integer Yes
updated_at string (date-time) 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