Domain

Sets the domain a lambda answers at

Takes effect at once: the next request addressed to the domain reaches the lambda, one addressed to its previous domain no longer does, and its subdomain of the hosting domain sends its visitors on to the domain from then on - so the domain should point here, with a certificate, first.

The domain is lower cased, an international one written as it is in the DNS, and a pasted address is forgiven its scheme and path. It needs an ending (example.com, not example), and may not be an IP address or a name of the platform. Sending none removes it, as DELETE does.

put/lambdas/{privateKey}/domain

Request

  • Base URL: https://genhttp.dev/api/v1
  • URL: https://genhttp.dev/api/v1/lambdas/{privateKey}/domain
  • Auth: none declared

Path parameters

privateKeystring required

The editor key of the lambda. Holding it is what allows the call.

Request body

Domainstring nullable

The domain, as it should answer: shop.example.com, or www.example.com to answer there. Nothing, or an empty one, removes it.

Response

The domain afterwards, and what it resolves to

Domainstring nullable

The domain it is configured to answer at; absent without one

Tierstring

The tier of the lambda, which decides whether it may have one

Allowedboolean

Whether the tier includes a domain of its own: only the premium tier does

Servedboolean

Whether requests to the domain reach the lambda right now - it has one, and its tier includes it. A domain kept from a premium tier is not served.

Changes

No recorded changes to this operation across all 1 revision of this API.