This resource address updates the configuration properties of the specified alert trigger for the specified database.
URL Parameters | |
---|---|
format | The format of the posted data. Can be either
json or xml (default). This value overrides the Accept header if
both are present. |
Upon success, MarkLogic Server returns a status code 200 (OK). If the payload is malformed or the trigger does not exist, a status code of 400 (Bad Request) is returned. A status code of 401 (Unauthorized) is returned if the user does not have the necessary privileges.
manage-admin
rolehttp://marklogic.com/xdmp/privileges/manage-admin
http://marklogic.com/xdmp/privileges/manage
http://marklogic.com/xdmp/privileges/create-trigger
and
http://marklogic.com/xdmp/privileges/manage
privileges, plus one of the following privileges:
http://marklogic.com/xdmp/privileges/admin/database
http://marklogic.com/xdmp/privileges/admin/database/database-ID
http://marklogic.com/xdmp/privileges/admin/database/triggers/database-ID
http://marklogic.com/xdmp/privileges/admin/database/database-name
http://marklogic.com/xdmp/privileges/admin/database/triggers/database-name
The properties that can be modified are listed below.
id
name
description
event
This is a complex structure with the following children:
data-event
This is a complex structure with the following children:
document-scope
This is a complex structure with the following children:
uri
collection-scope
This is a complex structure with the following children:
uri
directory-scope
This is a complex structure with the following children:
uri
depth
document-content
This is a complex structure with the following children:
update-kind
any-property-content
any-custom-property-content
property-content
This is a complex structure with the following children:
property-name
This is a complex structure with the following children:
namespace-uri
localname
when
database-online-event
This is a complex structure with the following children:
user
user-id
user-name
module
module-db
module-root
enabled
recursive
task-priority
permissions
This is a complex structure with the following children:
permission
This is a complex structure with the following children:
role-name
capability
curl -X PUT --digest -u admin:admin -H "Content-type: application/json" \ -d '{ "description": "New Description" }' \ http://localhost:8002/manage/v2/databases/myTriggers/triggers/my-trigger/properties ==> Updates the "description" of the "my-trigger" alert trigger.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.