diff --git a/CHANGELOG.md b/CHANGELOG.md index 61512a50..ddeafd66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 2.15.1 (October 20th, 2025) + +BUG FIXES: + +* Fix data source update incorrectly adding the id into the body + ## 2.15.0 (August 28th, 2025) FEATURES: diff --git a/rest/client.go b/rest/client.go index 716a73b2..3c73f704 100644 --- a/rest/client.go +++ b/rest/client.go @@ -13,7 +13,7 @@ import ( ) const ( - clientVersion = "2.15.0" + clientVersion = "2.15.1" defaultBase = "https://api.nsone.net" defaultEndpoint = defaultBase + "/v1/" diff --git a/rest/data_source.go b/rest/data_source.go index 6c36ede7..0e9fe2d8 100644 --- a/rest/data_source.go +++ b/rest/data_source.go @@ -72,6 +72,8 @@ func (s *DataSourcesService) Create(ds *data.Source) (*http.Response, error) { // NS1 API docs: https://ns1.com/api/#sources-post func (s *DataSourcesService) Update(ds *data.Source) (*http.Response, error) { path := fmt.Sprintf("data/sources/%s", ds.ID) + // must be omitted from the body + ds.ID = "" req, err := s.client.NewRequest("POST", path, &ds) if err != nil {