Skip to content

Restore a soft-deleted Document​

POST
/mongodb/collections/{collectionName}/documents/{documentId}/restore

Removes the deleted mark of a document of a collection declared with softDelete (2.3.0). 404 for a collection without soft delete and for a document that is missing or not deleted.

Authorizations​

httpAuth
Type
HTTP (bearer)
or
httpAuth1
Type
HTTP (basic)
or
apiKeyAuth
Type
API Key (header: X-AUTH-APIKEY)

Parameters​

Path Parameters

collectionName*

The name of your MongoDb Collection

Type
string
Required
documentId*

DocumentId to restore

Type
string
Required

Responses​

application/json
JSON
{
  
"wasAcknowledged": true,
  
"upsertedIds": [
  
  
"string"
  
],
  
"modifiedCount": 0,
  
"matchedCount": 0
}

Playground​

Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Released under the MIT License.