Internal server error setting tags via the api

Thanks @david its works. :slight_smile: