Skip to content
  • Auto
  • Light
  • Dark
Talk to an expert

Edit

Update a credit grant
v1.credit_grants.edit(**kwargs) -> dataIDCreditGrantEditResponse
post/v1/credits/editGrant

Edit an existing credit grant

Parameters
idString

the ID of the credit grant

formatuuid
credit_grant_typeString
optional

the updated credit grant type

expires_atTime
optional

the updated expiration date for the credit grant

formatdate-time
nameString
optional

the updated name for the credit grant

Returns
CreditGrantEditResponseclass
Hide ParametersShow Parameters
dataidStringID
require "metronome_sdk"

metronome = MetronomeSDK::Client.new(bearer_token: "My Bearer Token")

response = metronome.v1.credit_grants.edit(id: "9b85c1c1-5238-4f2a-a409-61412905e1e1")

puts(response)
200 Example
{
  "data": {
    "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
  }
}