-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clear site aliases #122
Comments
NOTE: This looks like an issue with the API itself, not the SDK. Can replicate the behavior using straight API calls. Seems that the ability to add/remove aliases from the API is not working. I can send the following payload:
which results in a 200 response, but the old aliases are still present:
|
I went back and re-read the documentation, and my original understanding of it was incorrect. Currently, the API only supports ADDING aliases, not DELETING. Per the documentation: Submitting an empty array of aliases will have no effect, as you're just telling forge "Add nothing to the aliases." As it stands, this is working as intended. Perhaps we can use this Issue to add the implementation to delete aliases? |
Feel free to send in a pr, thanks. |
We can't send in a PR for a function of the API. It's the API that's not removing the aliases, not just the SDK. |
You can delete aliases using Update Site: $forge->updateSite($serverId, $siteId, array $data); See https://forge.laravel.com/api-documentation#update-site hth |
Description:
When a site has only one alias and update that site with empty aliases array that last alias is not removed.
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: