add_zone_record permission error

yingfan

Registered
Oct 8, 2010
2
0
51
Hi,

I tried to make an API call (in a CPanel plugin) to add_zone_record, to make a CNAME, and got this error message:
You do not have permission to read the zone for: x.x.x

x.x.x is the domain name given.

However if I try to add the CNAME in CPanel itself, it goes through.
What would be the possible problems that cause this ?

Thank yeah