typecast attr_id & link_entities correction

- cast attr_id to string to make sure concatenation works
- added request type to link_entities