You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to update an existing record, a new one is created instead.
The request appears to ignore the record ID when passed. Any and no value can be passed at the end of the URL when using the PATCH method and a new record will be created as long as it is different to an existing record.
Note that the message is "Your DNS record was created successfully.", and the record has a different id. See that 2 records are now present either by GETing the DNS records or checking in the dashboard.
The text was updated successfully, but these errors were encountered:
@ejstreet Hey I had this problem too but using some guesswork I workaround it. Basically for this particular API you need specify the id inside the body.
Indeed this is weird and I'm not sure if it's by design. Behavior has been inconsistent in different apis but I do understand. Adam got many stuff on his plate :).
btw this issue #534 is related. We can track it there.
ejstreet
changed the title
[Bug] API - DNS - Edit an existing DNS record does not work
[Bug] API - DNS - Edit an existing DNS record does not work as described
Feb 5, 2023
@wayneyaoo is correct, and I apologize for the inconsistencies here. Some of these endpoints are a bit of a mess, and I do need to invest the time in doing an overhaul and general tightening of things with an aim toward consistency and accuracy. Hopefully won’t be too much longer before I get to that.
Bug Description
When trying to update an existing record, a new one is created instead.
The request appears to ignore the record ID when passed. Any and no value can be passed at the end of the URL when using the PATCH method and a new record will be created as long as it is different to an existing record.
Steps to Reproduce
Create a DNS record:
Attempt to update the record using patch and the ID:
Note that the message is
"Your DNS record was created successfully."
, and the record has a differentid
. See that 2 records are now present either byGET
ing the DNS records or checking in the dashboard.The text was updated successfully, but these errors were encountered: