diff --git a/examples/log_flushing/QueueLogFlushingTask/QueueLogFlushingTask.go b/examples/log_flushing/QueueLogFlushingTask/QueueLogFlushingTask.go index 40a596c1c..762ba2d55 100644 --- a/examples/log_flushing/QueueLogFlushingTask/QueueLogFlushingTask.go +++ b/examples/log_flushing/QueueLogFlushingTask/QueueLogFlushingTask.go @@ -26,7 +26,7 @@ func main() { } // Call function to create log flushing task - createdTask, err := client.CreateLogFlushingTask(newTask) + createdTask, err := client.QueueLogFlushingTask(newTask) if err != nil { log.Fatalf("Error creating log flushing task: %v", err) } diff --git a/sdk/jamfpro/jamfproapi_log_flushing.go b/sdk/jamfpro/jamfproapi_log_flushing.go index ca4b22500..9907fecc2 100644 --- a/sdk/jamfpro/jamfproapi_log_flushing.go +++ b/sdk/jamfpro/jamfproapi_log_flushing.go @@ -94,8 +94,8 @@ func (c *Client) GetLogFlushingSettings() (*ResponseLogFlushingSettings, error) return &out, nil } -// QueueLogFlushingTaskLogFlushingTask creates a new log flushing task in Jamf Pro -func (c *Client) QueueLogFlushingTaskLogFlushingTask(task *ResourceLogFlushingTask) (*ResponseLogFlushingTaskCreated, error) { +// QueueLogFlushingTaskcreates a new log flushing task in Jamf Pro +func (c *Client) QueueLogFlushingTask(task *ResourceLogFlushingTask) (*ResponseLogFlushingTaskCreated, error) { endpoint := fmt.Sprintf("%s/task", uriLogFlushing) var response ResponseLogFlushingTaskCreated