Edit
Update a credit grant
post/v1/credits/editGrant
Edit an existing credit grant
Body Parameters
idstring
the ID of the credit grant
formatuuid
credit_grant_typestring
optional
the updated credit grant type
expires_atstring
optional
the updated expiration date for the credit grant
formatdate-time
namestring
optional
the updated name for the credit grant
Returns
dataidstringID
curl https://api.metronome.com/v1/credits/editGrant \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $METRONOME_BEARER_TOKEN" \
-d '{
"id": "9b85c1c1-5238-4f2a-a409-61412905e1e1"
}'
200 Example
{
"data": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
}