Trigger

Update trigger

Update trigger object.

put/api/v1/triggers/{triggerID}

Path parameters

triggerIDinteger required

Trigger ID

Request body

idinteger

ID of the trigger

urlstring url

URL of the trigger

queuestring uri

Queue URL.

eventstring

Event that will trigger the trigger (see trigger event types)

conditionobject

A subset of MongoDB Query Language (see trigger condition)

email_templatesstring[]

URLs of the linked email templates

delete_recommendationsstring[]

URLs of the linked delete recommendations

modified_bystring uri nullable

User that last modified the object.

modified_atstring date-time nullable

Timestamp of last modification.

Example request

{
  "id": 234,
  "url": "https://example.rossum.app/api/v1/triggers/234",
  "queue": "https://example.rossum.app/api/v1/queues/8198",
  "event": "annotation_imported",
  "condition": {},
  "email_templates": [
    "https://example.rossum.app/api/v1/email_templates/123",
    "https://example.rossum.app/api/v1/email_templates/321"
  ],
  "delete_recommendations": [
    "https://example.rossum.app/api/v1/delete_recommendations/123",
    "https://example.rossum.app/api/v1/delete_recommendations/321"
  ],
  "modified_by": "https://example.rossum.app/api/v1/users/10775",
  "modified_at": "2021-04-26T10:08:03.856648Z"
}

Response

OK

idinteger required

ID of the trigger

urlstring url required

URL of the trigger

queuestring uri required

Queue URL.

eventstring required

Event that will trigger the trigger (see trigger event types)

conditionobject required

A subset of MongoDB Query Language (see trigger condition)

email_templatesstring[] required

URLs of the linked email templates

delete_recommendationsstring[] required

URLs of the linked delete recommendations

modified_bystring uri nullable required

User that last modified the object.

modified_atstring date-time nullable required

Timestamp of last modification.

Example response

{
  "id": 234,
  "url": "https://example.rossum.app/api/v1/triggers/234",
  "queue": "https://example.rossum.app/api/v1/queues/8198",
  "event": "annotation_imported",
  "condition": {},
  "email_templates": [
    "https://example.rossum.app/api/v1/email_templates/123",
    "https://example.rossum.app/api/v1/email_templates/321"
  ],
  "delete_recommendations": [
    "https://example.rossum.app/api/v1/delete_recommendations/123",
    "https://example.rossum.app/api/v1/delete_recommendations/321"
  ],
  "modified_by": "https://example.rossum.app/api/v1/users/10775",
  "modified_at": "2021-04-26T10:08:03.856648Z"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.