Publish a Document
POST
/mongodb/collections/{collectionName}/documents/{documentId}/publish
Makes the working copy of a document of a collection declared with drafts its published state (2.11.0), validated like a write; sets _status published, publishedAt and publishedBy. Audited as publish. 400 for a collection without drafts.
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 publish
Type
Requiredstring
Responses
application/json
JSON "wasAcknowledged": true, "upsertedIds": [ "string" ], "modifiedCount": 0, "matchedCount": 0
{
}
