Set the custom hostname for a Discord subscription bot or Telegram subscription bot project. Features that use custom_hostname explain their own hostname requirements in their respective API documentation.
One exact, bare hostname. Wildcards are not supported. Do not include a scheme, port, path, query, or trailing slash.
The value represents exactly one hostname. Setting example.com does not include www.example.com, subdomain.example.com, or any other subdomain. Configure the exact hostname required by the feature using this setting.
Valid:
example.com
Invalid:
https://example.com/example.com/path*.example.com
This request only sets the project's custom_hostname value. It does not configure CORS, DNS, API hosting, or browser access. If the value conflicts with an existing verified hostname or origin, the API returns a conflict and does not assign it to the project.