## Edit `client.V1.CreditGrants.Edit(ctx, body) (*V1CreditGrantEditResponse, error)` **post** `/v1/credits/editGrant` Edit an existing credit grant ### Parameters - **body:** `V1CreditGrantEditParams` - **ID:** `param.Field[string]` the ID of the credit grant - **CreditGrantType:** `param.Field[string]` the updated credit grant type - **ExpiresAt:** `param.Field[Time]` the updated expiration date for the credit grant - **Name:** `param.Field[string]` the updated name for the credit grant ### Returns - Not supported - **Data:** `ID` ### Example ```go package main import ( "context" "fmt" "time" "github.com/Metronome-Industries/metronome-go" "github.com/Metronome-Industries/metronome-go/option" ) func main() { client := metronome.NewClient( option.WithBearerToken("My Bearer Token"), ) response, err := client.V1.CreditGrants.Edit(context.TODO(), metronome.V1CreditGrantEditParams{ ID: metronome.F("9b85c1c1-5238-4f2a-a409-61412905e1e1"), ExpiresAt: metronome.F(time.Now()), Name: metronome.F("Acme Corp Promotional Credit Grant"), }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Data) } ```