Skip to content
API Reference

Delete delegated grant

client.Zones.DelegatedGrants.Delete(ctx, id, body) error
DELETE/zones/{zoneId}/delegated-grants/{id}

Permanently revokes a delegated grant, removing the user's access to the protected resource

ParametersExpand Collapse
id string
body ZoneDelegatedGrantDeleteParams
ZoneID param.Field[string]

Zone ID

Delete delegated grant

package main

import (
  "context"

  "github.com/keycardai/keycard-go"
)

func main() {
  client := keycard.NewClient(

  )
  err := client.Zones.DelegatedGrants.Delete(
    context.TODO(),
    "id",
    keycard.ZoneDelegatedGrantDeleteParams{
      ZoneID: "zoneId",
    },
  )
  if err != nil {
    panic(err.Error())
  }
}
Returns Examples