Sample requests

    Request without a body

    The following request creates a snapshot called my-first-snapshot in an S3 repository called my-s3-repository. A request body is not included because it is optional.

    Request with a body

    You can also add a request body to include or exclude certain indices or specify other settings:

    Sample responses

    wait_for_completion not included

    To verify that the snapshot was created, use the Get snapshot API, passing the snapshot name as the snapshot path parameter.

    wait_for_completion included

    The snapshot definition is returned.

    Response fields