Invalid version format; No endpoint or operation is available at...; and related errors

That type of syntax is accepted by the Kibana Dev Console. We use that as standard syntax everywhere in the documentation because we believe it is a more compact and easier to understand syntax then just plain curl.