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

This endpoint returns an object.
timedoubleOptional
Time spent to process this request
statusstringOptional
resultobjectOptional