Skip to content

Commit

Permalink
remove ID from path
Browse files Browse the repository at this point in the history
  • Loading branch information
ponbiki committed Jul 27, 2023
1 parent 8a7773b commit 6fc020d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest/monitor_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (s *JobsService) Get(id string) (*monitor.Job, *http.Response, error) {
//
// NS1 API docs: https://ns1.com/api/#jobs-put
func (s *JobsService) Create(mj *monitor.Job) (*http.Response, error) {
path := fmt.Sprintf("%s/%s", "monitoring/jobs", mj.ID)
path := fmt.Sprintf("%s", "monitoring/jobs")

req, err := s.client.NewRequest("PUT", path, &mj)
if err != nil {
Expand Down

0 comments on commit 6fc020d

Please sign in to comment.