We've made significant improvements to the grants concept. Previously, each grant was associated with a single subaccount, requiring you to create multiple grants for multiple subaccounts. Now, you can create a single grant and assign multiple subaccounts to it. Consequently, the grant property gid is deprecated and will be removed on August 8th.
HTTP Methods: POST
, DELETE
, GET
Endpoint: platform/grants/{grant-selector}/subaccounts/{subaccounts}
Additionally, we have added the ability to disable or enable a grant:
HTTP Method: PUT
Endpoint: platform/grants/{grant-selector}
Request body:
{
"enabled": false
}