Registers a customer-owned domain (for example dashboard.acme.com) on the
branch and points it at a target entity, chosen by entity_type +
entity_id. In v1 only entity_type: function is supported (an
unsupported type is rejected with 400), where entity_id is the function
slug and the function must already exist on the branch (else 404).
The response includes the cname_target the customer must point their
domain at with a CNAME record; the domain goes live only once that DNS
resolves and a certificate is issued on the first request. A domain already
registered to another resource is rejected with 409 and no detail about
the owner. Re-registering the same domain for the same entity is idempotent.
Note: This endpoint is currently in Beta.