How to restore the last on demand snapshot taken via api?

I took the backup of the database using below command

          CODE=`curl --user "${{ secrets.PUBLIC_KEY }}:${{ secrets.PRIVATE_KEY }}" \
              --digest --include \
              --header "Accept: application/json" \
              --header "Content-Type: application/json" \
              --request POST "${{ secrets.PROJECT_ID }}/clusters/cluster-1/backup/snapshots?pretty=true" \
              --data '{ "description" : "On Demand Snapshot", "retentionInDays" : 3 }'`

Now I am looking for a way to use the above snapshot the restore back the database using the curl command

Hi @Vikas_Rathore and welcome in the MongoDB Community :muscle: !

I think you are looking for this: