Skip to content
Get started

Cancel build

client.Builds.Cancel(ctx, id) error
delete/builds/{id}

Cancel build

ParametersExpand Collapse
id string
Cancel build
package main

import (
  "context"

  "github.com/kernel/hypeman-go"
  "github.com/kernel/hypeman-go/option"
)

func main() {
  client := hypeman.NewClient(
    option.WithAPIKey("My API Key"),
  )
  err := client.Builds.Cancel(context.TODO(), "id")
  if err != nil {
    panic(err.Error())
  }
}
Returns Examples