## Edit `v1.credit_grants.edit(CreditGrantEditParams**kwargs) -> CreditGrantEditResponse` **post** `/v1/credits/editGrant` Edit an existing credit grant ### Parameters - **id:** `str` the ID of the credit grant - **credit\_grant\_type:** `str` the updated credit grant type - **expires\_at:** `Union[str, datetime]` the updated expiration date for the credit grant - **name:** `str` the updated name for the credit grant ### Returns - `class CreditGrantEditResponse` - **data:** `ID` ### Example ```python from datetime import datetime from metronome import Metronome client = Metronome( bearer_token="My Bearer Token", ) response = client.v1.credit_grants.edit( id="9b85c1c1-5238-4f2a-a409-61412905e1e1", expires_at=datetime.fromisoformat("2022-04-01T00:00:00"), name="Acme Corp Promotional Credit Grant", ) print(response.data) ```