Azure auth role creation API clarification

This document: Azure - Auth Methods | Vault | HashiCorp Developer
It gives an example of creating an azure auth role via API.
The sample request looks like this:

$ curl
–header “X-Vault-Token: …”
–request POST
–data ‘{“policies”: [“dev”, “prod”], …}’
https://127.0.0.1:8200/v1/auth/azure/role/dev-role

In the request body, it specifies “policies”, however in the API documentation here: Azure - Auth Methods - HTTP API | Vault | HashiCorp Developer

There is no element by name “policies”. In the API documentation, there is mention of “token_policies”, is that what the above curl request should have specified instead of “policies”?

Hi. token_policies is the current parameter name. policies is deprecated but still supported. We’ll look to update that, and you’re welcome to submit a docs PR too (“edit” link at the bottom of the docs pages)

Thanks,
Jim