Skip to main content
POST
/
credits
/
editGrant
Update a credit grant
curl --request POST \
  --url https://api.metronome.com/v1/credits/editGrant \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "9b85c1c1-5238-4f2a-a409-61412905e1e1",
  "name": "Acme Corp Promotional Credit Grant",
  "expires_at": "2022-04-01T00:00:00Z"
}'
{
  "data": {
    "id": "8b24d3dc-6db5-432d-9416-8439b3fbf242"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The id of the credit grant to edit and the updated fields. Currently only the name and expires_at fields can be updated.

id
string<uuid>
required

the ID of the credit grant

name
string

the updated name for the credit grant

expires_at
string<date-time>

the updated expiration date for the credit grant

credit_grant_type
string

the updated credit grant type

Response

Success

data
object
required
I