You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 4.2 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: Transformers: How to change transformer lock mode?

SetTransformerLock method allows you to change transformer lock mode for a given transformer.

Syntax

curl \
	http://{serverName}/databases/{databaseName}/transformers/{transformerName}?op=lockModeChange&mode={lockMode} \
	-X POST \
	-d ""
Payload
Empty
Query parameter Required Description
transformerName Yes Name of an transformer
lockMode Yes Transformer lock mode: Unlock or LockedIgnore

Response

Status code Description
200 OK
404 Transformer not found
Return Value Description
None -

Example

curl -X POST "http://localhost:8080/databases/Northwind/transformers/Orders/Company?op=lockModeChange&mode=LockedIgnore" -d ""
< HTTP/1.1 201 Created