Set write protection

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

Headers

api-keystringRequired

Request

Lock options and optional error message
writebooleanRequired
error_messagestring or nullOptional

Response

successful operation
usageobject or any or null
timedouble or null
Time spent to process this request
statusstring or null
resultobject or null