Update a domain (include_www)
PATCH
/api/v1/domains/{id}
const url = 'https://app.routeseam.com/api/v1/domains/1';const options = { method: 'PATCH', headers: {'X-Api-Key': '<X-Api-Key>', 'Content-Type': 'application/json'}, body: '{"include_www":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://app.routeseam.com/api/v1/domains/1 \ --header 'Content-Type: application/json' \ --header 'X-Api-Key: <X-Api-Key>' \ --data '{ "include_www": true }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
integer
Request Body
Section titled “Request Body”Media typeapplication/json
object
include_www
boolean
Examplegenerated
{ "include_www": true}Responses
Section titled “Responses”OK
Media typeapplication/json
object
domain
required
object
id
required
integer
hostname
required
string
status
required
string
include_www
required
boolean
dns_verified_at
required
string | null format: date-time
tls_status
required
E.g. issued / failed
string | null
created_at
required
string format: date-time
dns
Present while status is not active — the record to add
object
type
string
name
string
value
ROUTESEAM_IP
string
Example
{ "domain": { "status": "pending_dns", "dns": { "type": "A", "name": "@" } }}Missing or invalid API key
Media typeapplication/json
The ONLY error envelope — produced by Api::V1::BaseController#render_error_response
object
error
required
string
errors
Array<string>
validation_errors
object
key
additional properties
Array<string>
Example
{ "error": "Invalid API key", "errors": [], "validation_errors": {}}Not found (cross-tenant ids are indistinguishable from missing ones)
Media typeapplication/json
The ONLY error envelope — produced by Api::V1::BaseController#render_error_response
object
error
required
string
errors
Array<string>
validation_errors
object
key
additional properties
Array<string>
Example
{ "error": "Not found", "errors": [], "validation_errors": {}}Validation failed (validation_errors keyed by attribute)
Media typeapplication/json
The ONLY error envelope — produced by Api::V1::BaseController#render_error_response
object
error
required
string
errors
Array<string>
validation_errors
object
key
additional properties
Array<string>
Examplegenerated
{ "error": "example", "errors": [ "example" ], "validation_errors": { "additionalProperty": [ "example" ] }}Over 300 requests/minute for this key
Media typeapplication/json
The ONLY error envelope — produced by Api::V1::BaseController#render_error_response
object
error
required
string
errors
Array<string>
validation_errors
object
key
additional properties
Array<string>
Example
{ "error": "Rate limit exceeded", "errors": [], "validation_errors": {}}