Administration

Sets the domain of a lambda

Under the same rules as PUT /lambdas/{privateKey}/domain: only a premium lambda may have one. Nothing, or an empty domain, removes it.

put/admin/lambdas/{publicKey}/domain

Request

  • Base URL: https://genhttp.dev/api/v1
  • URL: https://genhttp.dev/api/v1/admin/lambdas/{publicKey}/domain
  • Auth: none declared. Required headers: X-Admin-Token

Path parameters

publicKeystring required

The public key of the lambda

Headers

X-Admin-Tokenstring required

The administration token of the installation (LAMBDA_ADMIN_TOKEN)

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 lambda afterwards

Tiersstring[]

The tiers it may be moved to

Changes

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