python - Permission denied at Customer Subuser API -
i'm trying manage subuser account limits via sendgrid web api v2, keep getting:
{u'error': { u'message': u'permission denied, not allowed manage users', u'code': 401 }}
what i'm doing post @ https://api.sendgrid.com/apiv2/customer.limit.json
data: api_user=your_sendgrid_username&api_key=your_sendgrid_password&user=subuser_username&task=retrieve
docs suggest.
requests.post('https://api.sendgrid.com/apiv2/customer.limit.json', data={'api_user': 'my_sg_username', 'api_key': 'my_sg_password', 'user': 'subuser_username', 'task': 'retrieve' }).json()
my account has admin permissions , able changes via ui, not v2 of api.
is there option somewhere i'm missing?
few notes:
- i'm able create subusers v3 of api
- but i'm using v2 here, because there no
account limits
options in v3. - i error on
apiv2/customer.*.*
endpoints, cannot follow this guide
i facing same problem. have contacted customer support. there v3 endpoint , not documented. waiting reply on this. update thread once reply send
Comments
Post a Comment