getting 500 vi exception API error while trying to create locality

I created role based access group and then assigned write permissions on Basetree and locality table.

I setup role within 1IM and assigned role to service account person record.

I am able to authenticate to 1IM API using rolebasedmanualads module but while trying to create locality I am getting 500 viexception response.

Pls help me to resolve the issue.

I have assigned AppServer_API program function as well to dialog group.

sample JSON

{
"values": {
"Ident_locality": "USAKLRSE123456",
"UID_DialogCountry": "QBM-F6FA4426EFE54D478A893CAC5AB032B6",
"UID_DialogState": "QBM-EABA8548DB5F41738B24DE57D38A2B9A",
"UID_ParentLocality": "sfdsdf-218d-4b7a-9033-sdfsfeerf",
"City": "Auckland",
"CustomProperty01": "Local_Office",
"CustomProperty02": "",
"CustomProperty03": "",
"CustomProperty04": "",
"CustomProperty05": "",
"CustomProperty06": "BUSINESS SITE",
"CustomProperty07": "123 Mexico, Mexico",
"LongName": "123 Rothwell Avenue, Mexico"
}
}


{
"responseStatus": {
"message": "Locations: Write permission denied for value \"Location\"."
},
"errorString": "Locations: Write permission denied for value \"Location\".",
"exceptions": [
{
"number": 810025,
"message": "Locations: Write permission denied for value \"Location\"."
}
]