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": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "expires_at": "2023-11-07T05:31:56Z",
  "credit_grant_type": "<string>"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

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