Skip to content

Unpublish a Document​

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

Makes a document of a collection declared with drafts a draft again (2.11.0): its working copy becomes the document, readers no longer see it. Audited as unpublish.

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 unpublish

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.