{
  "snapshot.create": {
    "documentation": {
      "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-create",
      "description": "Create a snapshot"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ],
      "content_type": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_snapshot/{repository}/{snapshot}",
          "methods": [
            "PUT",
            "POST"
          ],
          "parts": {
            "repository": {
              "type": "string",
              "description": "A repository name"
            },
            "snapshot": {
              "type": "string",
              "description": "A snapshot name"
            }
          }
        }
      ]
    },
    "params": {
      "master_timeout": {
        "type": "time",
        "default": "30s",
        "description": "Explicit operation timeout for connection to master node"
      },
      "wait_for_completion": {
        "type": "boolean",
        "description": "Should this request wait until the operation has completed before returning",
        "default": false
      }
    },
    "body": {
      "description": "The snapshot definition",
      "required": false
    }
  }
}
