New user rest APIs

The userids and sectionsids can be of text values.
Should I clean the array using the clean_param_array($userids, PARAM_NOTAGS) API ?