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
Requiredstring
documentId*
DocumentId to restore
Type
Requiredstring
Responses
application/json
JSON "wasAcknowledged": true, "upsertedIds": [ "string" ], "modifiedCount": 0, "matchedCount": 0
{
}
