Documentation for reporting with basic licence is wrong

Hi the API call in this section of the documentation doesnt work in the actual version of elasticsearch.

what will be the right API call to set reporting with basic licence?

Do you mean the PUT localhost:5601/api/security/role/custom_reporting_user one?