Azure auth role creation API clarification

This document: Azure - Auth Methods | Vault by HashiCorp
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”], …}’

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

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)