Service

Check write protection

GET
Retrieves the current lock setting. If write is false, all write operations and collection creation are restricted.

Response

This endpoint returns an object
time
doubleOptional
Time spent to process this request
status
stringOptional
result
objectOptional
GET
1curl http://localhost:6333/locks \
2 -H "api-key: <apiKey>"
200Retrieved
1{
2 "time": 1.1,
3 "status": "status",
4 "result": {
5 "write": true,
6 "error_message": "error_message"
7 }
8}