Custom Host Name

I’ve been trying to add a custom host name using custom API key (with permission edit) , But i’m getting 401 unauthorised error. But I am able to add custom hostnames using the global api key, so I think it’s an issue with the permission I added to the custom key. Can you please tell me which all permission I need to add to the API key for custom host name creation ??

Thank you