I am trying to issue an _optimize command via curl. I've tried both of the below styles:
$ curl --user username:password -XPOST "https://redacted.us-east-1.aws.found.io:9243/foo/_optimize?max_num_segments=1"
{"error":{"root_cause":[{"type":"parse_exception","reason":"request body is required"}],"type":"parse_exception","reason":"request
$ curl --user username:password -H 'Content-Type: application/json' -XPOST https://redacted.us-east-1.aws.found.io:9243/foo/_optimize -d '{"max_num_segments" : "1"}'
{"error":{"root_cause":[{"type":"invalid_type_name_exception","reason":"Document mapping type name can't start with '_', found: [_optimize]"}],"type":"invalid_type_name_exception","reason":"Document mapping type name can't start with '_', found: [_optimize]"},"status":400}
Is _optimize supported on the Elastic Cloud version of Elasticsearch?