Change role to permission in API v3