Set write protection

POST

Restricts all write operations and forbids collection creation. This endpoint also returns previous lock options.

Request

This endpoint expects an object.
writebooleanRequired
error_messagestringOptional

Response

successful operation

timedoubleOptional

Time spent to process this request

statusstringOptional
resultobjectOptional