Pages Domain API returns 404 when using a specific domain
Summary
When trying to access or alter the details of a pages domain using the API, the request returns a 404 for despite the domain being listed in pages/domains
Note: The below steps are for viewing a domain, the same bug happens when updating a domain.
Steps to reproduce
- run
curl --header "Private-Token: <<mytoken>>" https://gitlab.com/api/v4/projects/<<myproject>>/pages/domains
This returns:
[{"domain": "<<mydomain>>", "url": "https://<mydomain>>"}]
- run
curl --header "Private-Token: <<mytoken>>" https://gitlab.com/api/v4/projects/<<myproject>>/pages/domains/<<mydomain>>
What is the current bug behavior?
It returns {"error": "404 Not Found"}
What is the expected correct behavior?
Something like
{
"domain": "<<mydomain>>",
"url": "https://<<mydomain>>"
}
as is listed in the documentation.
Results of GitLab environment info
This currently occurs on gitlab.com, but I doubt this is installation-specific.
Edited by L. K. Post