Updates project's custom hostname configuration
post
/v1/projects/{ref}/custom-hostname/initializeThis is an experimental endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable.
This endpoint is currently in its Beta stage.
OAuth scopes
- domains:write
The fine-grained token must include the following permissions to access this endpoint:
- custom_domain_write
Path parameters
- refRequiredstring
Project ref
Body
- custom_hostnameRequiredstring
Response codes
- 201
- 401
- 403
- 429
- 500
Response (201)
{ "status": "1_not_started", "custom_hostname": "lorem", "data": { "success": true, "errors": [ "lorem" ], "messages": [ "lorem" ], "result": { "id": "lorem", "hostname": "lorem", "ssl": { "status": "lorem", "validation_records": [ { "txt_name": "lorem", "txt_value": "lorem" } ], "validation_errors": [ { "message": "lorem" } ] }, "ownership_verification": { "type": "lorem", "name": "lorem", "value": "lorem" }, "custom_origin_server": "lorem", "verification_errors": [ "lorem" ], "status": "lorem" } }}