Delete
Delete Automation
client.Automations.Delete(ctx, id, body) (*AutomationDeleteResponse, error)
delete/api/v1/automations/{id}
Invokes the c1.api.automations.v1.AutomationService.DeleteAutomation method.
Parameters
idstring
The id field.
bodyBodyfieldAutomationDeleteParams
Returns
AutomationDeleteResponseinterface
The DeleteAutomationResponse message.
Request example Go
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/-go"
"github.com/stainless-sdks/-go/option"
)
func main() {
client := conductoronesdk.NewClient(
option.WithAPIKey("My API Key"),
)
automation, err := client.Automations.Delete(
context.TODO(),
"id",
conductoronesdk.AutomationDeleteParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", automation)
}
200 Example
{}